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.

Set value of one field depending on value of another field.

  1. freeHat
    Member

    I'm using gf with a shopping cart. I need to show both the label and value for the selected option of an option field in the shopping cart review and order pages. I need the label in order summary table and the the value I use to generate a product code somewhere else.

    To that end, would it be possible to have a field populate with a value depending on the value of another field. Exampe, if option 'a' is selected in one field, another field is then given a value 'x'. The field with 'x' value would then be used to generate a merge tag for the product code. So I'm basically trying to create the value I need for a field in another field. :) BTW, I have my form split into two pages enabling me to populate the product code field depending on choices entered.

    Thank-you!

    Posted 11 years ago on Thursday April 4, 2013 | Permalink
  2. freeHat
    Member

    Having investigated further - http://www.gravityhelp.com/forums/topic/display-related-data-from-single-field-entry

    this seems like it could be solved by looking up the value. Very much appreciated if you could post a simple example of a table lookup within gf? Thanks!

    Posted 11 years ago on Thursday April 4, 2013 | Permalink
  3. I'm having a hard time following what it is you're looking to do. The second example didn't seem to be related to your first question. Can you post any examples of the form embedded in your site where we can see it?

    Posted 11 years ago on Monday April 8, 2013 | Permalink