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.

conditionally setting fields?

  1. Is there a way to conditionally set values for fields from another field? I want to create a "wizard" of sorts, that would end up redirecting to our store, based on a series of questions for what the client needs.
    A simple example would be if I had a multiple choice fields with choices A,B,C, and a hidden field called "type", selecting multiple choice A would set "type" to 1(or another arbitrary value), then I use "type" in a Confirmation redirect as product id.
    I know it could be done with a custom page that does the end-point logic and redirects on to the store, but it would be nice to keep the logic in one place..

    Thanks.

    Posted 14 years ago on Thursday December 30, 2010 | Permalink
  2. Currently this isn't possible as a built in feature. Conditional logic is only currently used to show/hide fields based on selections, it doesn't set field values.

    Posted 14 years ago on Thursday December 30, 2010 | Permalink
  3. Thanks for the rapid response! Could it be logged as a feature request, then?

    Posted 14 years ago on Thursday December 30, 2010 | Permalink
  4. I would definitely love to be able to able to let someone select a category for the post and use that value as both the category and as the title for the post. I know it sounds strange, but for the project I'm working on, it would be great. But nothing like that is possible?

    Posted 14 years ago on Thursday December 30, 2010 | Permalink
  5. @Nicholas Yes this is possible. You would use the Content Template functionality of the Post Title field. This would allow you to populate it with the value of a Post Category field. Then if you don't want the Post Title field visible by the user, edit it and go to the Advanced tab and set it's visibility to Admin Only. It will then be used as a hidden field and populated with the value of the Post Category field.

    See this screenshot:

    http://grab.by/889F

    Look at the create content template area.

    This is available in the 1.5 development release of Gravity Forms.

    Posted 14 years ago on Thursday December 30, 2010 | Permalink