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.

How to add multiple fields based upon the user input on one field

  1. How can I add multiple fields related to a question asked of the user. The user comes and is asked how many cars they would like to insure. Based up on their answer 1-5, they are given the corresponding set of fields related to each car. I can't figure out how to tailor this with the conditional logic. Is there an easy way to add multiple field sets that I'm missing?

    Posted 11 years ago on Saturday November 3, 2012 | Permalink
  2. This is normally done with conditional logic. Based on the user's selection of 1 to 5 from the drop down, you will reveal 1, 2, 3, 4 or 5 more fields. The problem is that there are no repeating sections in Gravity Forms, so it becomes tedious to add multiple fields, always the same, for each time you want to use them in the form. In other word, you can't repeat a section.

    Another way to do it is to gather the visitor's information and enough for one vehicle. Then, after the form is submitted, offer them the ability to submit another vehicle. You can do this by offering a link in the text confirmation area. or actually loading the form again with the shortcode, in the confirmation text. You make it easy for the visitor by pre-populating all their information where it's possible, and just have them enter the next vehicle.

    Posted 11 years ago on Tuesday November 13, 2012 | Permalink