• Im using a group of radio buttons with values different from labels for example:

    July ::optgroup,08-14::July 08 – 14,15-21::July 15 – 21,22-28::July 22 – 28,29-04::July 29 – 04

    But when submitted label values is entered into the database rather than input values. Am I doing something wrong?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Roland Barker

    (@xnau)

    You just need to reverse the order of each pair, the label goes first

    July::optgroup,July 08 – 14::08-14,

    and so forth…

    Thread Starter vretenis

    (@vretenis)

    Yes but I need “08-14” as a label and “July 08 – 14″ as a record in the database. I get them right in html (<label>08-14</label> , <input value=”July 08 -14”>, but in “List Participants” section I still see it as “08-14”.

    Furthermore I checked mysql fields and they are added correctly (“July 08 – 14”) only in “List Participants” values are displayed as labels.

    When exported to CSV I get them correctly too. In confirmation email also as label..

    • This reply was modified 8 years, 1 month ago by vretenis.
    • This reply was modified 8 years, 1 month ago by vretenis.
    Plugin Author Roland Barker

    (@xnau)

    Wait…you said you weren’t getting the expected value in the database?

    So everything works fine except it’s showing the saved value instead of the label in the list display? Does it do this for all the entries, or just some of them?

    Thread Starter vretenis

    (@vretenis)

    Its working fine in signup form html and mysql except displaying in “List Participants” table where labels is shown instead of values and when using shortcode for email confirmation. In both these cases labels is shown/sent instead of input values.

    Here how it goes:

    Title: Shift
    Values: July ::optgroup,08-14::July 08 – 14

    Label = 08 – 14 – correct
    Value = July 08 – 14 – correct

    In signup form html I get:
    <label><input value=”July 08 – 14″> 08 – 14</label> – correct

    In mysql under “shift” row on submitted entry I see value July 08 – 14 – correct

    In “List Participants” table under “Shift” row on submitted entry I see 08 – 14 – not correct

    In confimration email I get 08 – 14 – not correct

    Plugin Author Roland Barker

    (@xnau)

    OK, thanks for the details…something is up, give me a day or so to figure it out.

    Thread Starter vretenis

    (@vretenis)

    Hi, any news on this?

    Plugin Author Roland Barker

    (@xnau)

    So far, I haven’t been able to see this problem in my tests, so not sure what’s happening in your case. Can you post the exact contents of the “values” parameter of your radio field?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Radio button value’ is closed to new replies.