Support » Plugin: Contact form 7 TO API » Getting radio/checkbox values

  • Hi,

    I’m using a checkbox in my form, but I’m only getting a “1” value when checkbox is checked, instead of actuel checked value.

    here is a sample :
    [checkbox* checkbox-91 label_first exclusive "Madame" "Monsieur"]

    And here is the plugin output :
    [checkbox-91] => 1

    I would expect something like that :
    [checkbox-91] => "Madame"

    Is there something wrong with my code ? How can I get actual values ?

    Many thanks,
    Cyril

    PS : same thing goes with radio buttons :
    [radio radio-496 label_first "Permanent" "Ponctuel"]
    output :
    [radio-496] => 1
    instead of (example) :
    [radio-496] => "Permanent"

    • This topic was modified 1 year, 1 month ago by  cminette.
    • This topic was modified 1 year, 1 month ago by  cminette. Reason: adding radio buttons case
    • This topic was modified 1 year, 1 month ago by  cminette.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, same problem too. Also when you check several checkbox only the first value is sent and others are lost. Hope they fix this issues soon.

    My checkboxes are returning 1 always, no matter if they are checked or not.

    Plugin Author Query Solutions ltd

    (@querysolutions)

    I have released a fix for that
    Please check and let me know if all worked out

    Hi,
    The value comes as text now, but only the first value appears, and not all the checked values on the checkbox field.

    Thanks,
    Rani

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting radio/checkbox values’ is closed to new replies.