Title: Radio button value
Last modified: April 16, 2018

---

# Radio button value

 *  [vretenis](https://wordpress.org/support/users/vretenis/)
 * (@vretenis)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/)
 * 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](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10188376)
 * 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](https://wordpress.org/support/users/vretenis/)
 * (@vretenis)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10198417)
 * 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](https://wordpress.org/support/users/vretenis/).
    -  This reply was modified 8 years, 1 month ago by [vretenis](https://wordpress.org/support/users/vretenis/).
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10199504)
 * 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](https://wordpress.org/support/users/vretenis/)
 * (@vretenis)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10199984)
 * 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](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10203268)
 * OK, thanks for the details…something is up, give me a day or so to figure it 
   out.
 *  Thread Starter [vretenis](https://wordpress.org/support/users/vretenis/)
 * (@vretenis)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10230815)
 * Hi, any news on this?
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10236406)
 * 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.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/radio-button-value/#post-10236406)
 * Status: not resolved