• Resolved guiberlin

    (@guiberlin)



    Hi there,

    I’m encountering an issue while trying to pass a value from WPForms. Although it might be something obvious, I am unable to figure it out on my own.

    In my form, there is a checkbox with multiple choices. However, whenever I choose an option, the value sent to Uncanny is always the numerical index of the choice, instead of the choice’s text. For instance, when I select “powders,” the value sent is “1,” not the word “powders.”

    Surprisingly, I cannot find this numerical value (“1”) in the HTML – I have attached a screenshot for reference. Could you please help me understand where this value is coming from?

    Thank you for your assistance. I appreciate any help you can offer!
    Best,
    Gui

    • This topic was modified 1 year, 6 months ago by guiberlin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Uncanny Automator

    (@uncannyautomator)

    Sorry @guiberlin , in your recipe you should be using the “(label)” version of your form field token instead, as it will output the string value that the user selects. The numerical value is basically the numbered value of the entry in fields where there are multiple selections.

    Can you try the other token and let us know if you are then seeing the value you expect in the token output?

    Thanks

    Thread Starter guiberlin

    (@guiberlin)

    Hi @uncannyautomator !
    My gosh, how didn’t I see that lol. Sometimes you find yourself in a tunnel and don’t see the obvious solution.

    Thank you SO much for your quick answer and amazing plugin ??

    Greetings from Berlin
    Gui

    Plugin Contributor Uncanny Automator

    (@uncannyautomator)

    Great, I’m glad we were able to help and that it was a quick fix!

    Thanks for the feedback.

    (By the way, the Automator team had a great time in Berlin in 2019 for WordCamp Europe. Hopefully we’ll get back at some point!)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wpforms checkbox value (to webhook)’ is closed to new replies.