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.

Dynamic Dropdowns ... yes again

  1. dealloc
    Member

    I know questions have been asked many times about populating a dropdown based on the contents of another dropdown selection. I also understand the problems with wrapping a intuitive UI around it.

    So that said I have two PreSales questions..

    1: Not having the plugin to look at it would it be easy to modify the JS to add your own functionality? Or are the forms rendered out in a way that referring back to elements become too cumbersome?

    2: It has been suggested that you have multiple dropdowns which you hide/display based on conditional logic. This is fine, but from a reporting aspect how does that work? Say I want two color dropdown menus that will display based on a model dropdown. If I want to setup notifications is it possible to email the color they actually chose back? Or would I have to reference to color fields in the notification? This, in a highly 'dynamic' form of this nature would create a less than pretty email notifcation.

    Thanks!

    Posted 14 years ago on Wednesday April 20, 2011 | Permalink
  2. 1 - Modifying the core conditional logic JS might prove to be a messy business; however, adding your own JS conditional logic or any other interactive JS to a Gravity Form is just as easy as adding it to any other HTML page.

    2 - All submitted field values (and a number of application generated values) are available in the notifications. If no value was submitted for a field, then no value would display. For a dropdown, you would output the dropdown token; something like {Favorite Color:3}, where "Favorite Color" would be the name of the drop down and the "3" would be the ID of the field. This token would then output whatever color they selected.

    Does this answer your question?

    Posted 14 years ago on Wednesday April 20, 2011 | Permalink
  3. dealloc
    Member

    Hi David, I think that about answers everything, but to verify... if I have 3 color fields and conditional logic is in place to have only one visible and thus only one value submitted I can do this in the notification.

    Color: {Color:1}{Color:2}{Color:3}

    And in the notification email I will see:

    Color: <the color submitted from the relevant color dropdown>

    If that works then I'm golden =)

    Posted 14 years ago on Wednesday April 20, 2011 | Permalink
  4. Yep, that will work. :)

    Posted 14 years ago on Wednesday April 20, 2011 | Permalink
  5. Yes, only the relevant drop down shows up in your notification. It's actually a well formatted email that you get once a form is submitted.

    Posted 14 years ago on Wednesday April 20, 2011 | Permalink