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.

Pre-populating a drop-down with other drop-downs on the current form

  1. I have a more complex form currently built, but for the purpose of this support query I have created a much smaller example to see if it will work.

    On a form (http://www.moygac.com/testform) I have got 3 different drop-down fields, currently set as football teams. What I essentially want to do is populate the options for a fourth drop-down field with whatever selections have been made in the first 3.

    For example, if I select as follows: Team1 Liverpool, Team2 Leeds, Team3 Barcelona
    I would like the options for the fourth drop-down (Final) to only be Liverpool, Leeds or Barcelona.

    I'm sorry if this comes across as a very simple question but I have been through the documentation and the previous support requests and I cannot see an example which explains it to me.

    Posted 13 years ago on Thursday April 19, 2012 | Permalink
  2. This is not something Gravity Forms is going to be able to do for you out of the box. You'd have to implement a customization, and unfortunately, the documentation for how to dynamically populate a drop down isn't going to help here because the drop down appears on the same form page. Which means, you'd have to do this using AJAX which would not be a simple customization.

    Could you just relabel your fields like:

    Favorite Team
    Second Favorite Team
    Third Favorite Team

    and just not have a fourth field. Or you could maybe have just a single input field in which they type it in? Just kicking around some potential alternatives.

    Posted 13 years ago on Thursday April 19, 2012 | Permalink
  3. Thank for the reply Rob - that was really just a simple example of a bigger project. In reality entrants to a competition have to pick 15 players from a list of 150, and then select a team captain from the 15 selected.

    If it cant be done it cant be done - definitely not the end of the world - just thought it would have been a nice feature to have.

    RMK

    Posted 13 years ago on Thursday April 19, 2012 | Permalink