PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Save radio button value instead of label

  1. Just purchased the Gravity Forms personal license, and it's working great. I'm using it to create posts via a form.

    I have custom fields set up in my system. I have created a radio button group to my form and would like to save the value instead of the label to database. I have enabled "show values" and populated the value fields with desired data to be saved, but it is namely the friendly label that gets saved into the custom field data in SQL database.

    Can you assist on instructing how to save the value? Cheers.

    Posted 12 years ago on Wednesday October 24, 2012 | Permalink
  2. I've flagged this one for feedback from the developers. Thank you for your patience.

    Posted 12 years ago on Thursday October 25, 2012 | Permalink
  3. Hi Mikko,

    I did quick test locally and the value was saved to the database for me and not the label which is the expected behavior when "Show values" has been enabled for a field.

    Where are you viewing the saved value? In a notification, the entry detail or the actual database?

    Posted 12 years ago on Thursday October 25, 2012 | Permalink
  4. Formmaker
    Member

    I see the value is saved to my database - but I want to pass it to the notification and to paypal...The label is what appear on the views a customer sees - and i need to tailor that to make the purchase experince understandable....but I want the values for eveything else -

    please tell me that the values can be easily pulled with a simple {variablelike this:???}

    I also want to customize the item line that paypal gets to include other variables entered during purchase - tell me this is possible to

    one problem please dont tell me have to create a plugin or write php - i cannot - this stuff should be simple - pulling essential data froma database without custom code....thanks

    Posted 12 years ago on Monday October 29, 2012 | Permalink
  5. Thanks Chris & David, it seems to be working now. I re-created the form and the value gets saved now instead of the label.

    I'm using WP Types plugin. I have custom fields set up with that. The custom fields have different friendly label than a numeric value that gets saved in to database. Now, to make the old data work, this form needs to work in similar fashion for heritage reasons, i.e. save a numeric value. And it does now.

    Cheers!

    Posted 12 years ago on Tuesday October 30, 2012 | Permalink
  6. mgorman03
    Member

    Guys,

    I am running into the same issue here except I want the value emailed to the client. I set everything up to what looks correct and the label passes. I hate to recreate this form as it is pretty large.

    In the database the values are shown, just not in the email.

    Mark

    Posted 12 years ago on Tuesday October 30, 2012 | Permalink
  7. Thanks for the update Mikko.

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  8. @mgorman03, if you want the value sent in the email to the client, add :value to the individual merge tag. It will work for {all_fields} (so, {all_fields:value} or any individual field. Just add :value to the merge tag as shown above.

    More documentation here:
    http://www.gravityhelp.com/documentation/page/Merge_Tags

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  9. Formmaker
    Member

    further is there something special that must be done to get the value of a drop down saved, and can the field - i was getting wrong value responses from proper choices

    my goal was to take info from drop down and populate the paypal receipt line with item option description and (user name or email) to track who bought exactly what

    Posted 12 years ago on Monday November 5, 2012 | Permalink
  10. Formmaker
    Member

    I think this is a bug: i have been working at it for many days again. due to this bug and the lack of data import and the need to keep a complete database - unless this is solved i do not know i can use it:

    I tried to begin asking here November 2012...stlill havin g issues

    i have 2 drop downs

    1st drop down choices are (label | Value):
    Vegetable - broccoli | Vegetable
    Vegetable - carrot | Vegetable
    Vegetable - turnip | Vegetable

    2nd drop down choices are:
    Vegetable - broccoli | broccoli
    Vegetable - carrot | carrot
    Vegetable - turnip | turnip

    Im trying to do a notification

    1st drop down: Vegetable
    2nd drop down::carrot

    I have proof it can work at 5:25 this morning first try -
    but it does not seem to be working now and i keep getting

    1st drop down: Vegetable
    2nd drop down: broccolli

    no matter which of the other two values chosen - broccoli and carrot

    it seems have stopped working since - i have tried adding and removing the :value, to no avail....it seems like the first drop down notification is right and the second one is alwys the value of the first choice.

    Now i don't want to rebuild this form for two reason - it is very long and two - i understand you cannot import your data into the forms either., that would be a lot of manual typing....

    please help me on this is now urgent - tell me what i can do

    also like mgorman03 I too see the right values in the database, just not in the email - the label passes into the email only

    Posted 11 years ago on Tuesday February 26, 2013 | Permalink
  11. Formmaker
    Member

    considerations may be - back up copy of form, it has same field values.....id numbers,

    main copy is a user registration copy - with many custom meta in the registration feed.....

    Posted 11 years ago on Tuesday February 26, 2013 | Permalink
  12. This topic is closed. Handling via priority support #17413.

    Posted 11 years ago on Saturday March 2, 2013 | Permalink

This topic has been resolved and has been closed to new replies.