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.

Variable number of repeated fields

  1. dnb
    Member

    Hi-
    This might be an easy question, sorry if it is too basic. I'm hoping to create a form that collects information about a group of people where I don't know the number of people ahead of time. For example:

    Group Name:
    Individual Name: Individual Phone:
    Individual Name: Individual Phone:
    ...
    Individual Name: Individual Phone:

    Ideally I'd like it if the form showed the first Individual Name slot with a button that said "Add another person" next to it. If that is too tough, I think it would also work if someone entered in the number of individuals first and then N slots were presented.

    Is this doable? Thanks!

    -- dNb

    Posted 14 years ago on Tuesday September 7, 2010 | Permalink
  2. Gravity Forms does not do variable repeated fields. The only way to do this would be to add the fields to your form and then hide them using conditional logic.

    Posted 14 years ago on Tuesday September 7, 2010 | Permalink
  3. dnb
    Member

    Thanks, Carl. Do you happen to have an example of hiding fields using conditional logic I could peek at? I don't recall seeing info on conditional logic at http://www.gravityhelp.com/documentation/ (I may not be looking in the right place).

    -- dNb

    Posted 14 years ago on Tuesday September 7, 2010 | Permalink
  4. Conditional Logic is found under the Advanced tab of all fields. It allows you to show or hide that field based on the value of another field. It only works based on the value of a drop down, radio button, or checkbox field.

    Posted 14 years ago on Tuesday September 7, 2010 | Permalink
  5. dnb
    Member

    Ok, got it. I just realized that you guys already made it easy as pie to use from the GUI. I was thinking for some reason there would be some coding involved. Thanks again for your help.

    Posted 14 years ago on Tuesday September 7, 2010 | Permalink