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.

Dynamically populate dropdown based on Product name

  1. Hi,

    Im setting up a web store and using gravity forms to add options on certain products.
    I would like to enable only certain sections of the forms depending on the product shown. Is it possible to populate a dropdown list with product name (hide it from everyone), then use that list as a condition on another dropdown list.
    Thanks
    Craig

    Posted 11 years ago on Tuesday July 3, 2012 | Permalink
  2. David Peralty

    So you would use conditional logic to hide things you don't want shown. Then based on a selection, the drop down (or whatever fields you want) would be shown. Then you could stack it as such that when the newly shown drop down has a certain selection to show more fields.

    http://www.gravityhelp.com/documentation/page/Enable_Conditional_Logic

    Posted 11 years ago on Tuesday July 3, 2012 | Permalink
  3. I have a similar question that not sure the answer really addressed.
    I would like to create a form to log items. So, it would be multiple columns and rows. The first row would be Item and I would like this to be a drop down. Then the next column would be another drop down, then free form columns for text input, etc.

    Is it possible to set up a list or is there a different type of field to be able to set up this table of user populated things.

    Ultimately, I would then like to be able to show this in a user's profile (buddy press profile).

    If you can point me in the right direction, much appreciated.

    Also, what software are you using for your support forum?

    Thanks,
    Kris

    Posted 11 years ago on Thursday July 19, 2012 | Permalink
  4. The support forum software here is the 1.x version of bbPress.

    You might want to look into the List field (it can be found under Advanced in the form builder.) That will allow multiple columns of input and will allow visitors to add additional lines of input for items to be logged.

    By default, the list field uses all text box inputs, but you can change that to include a drop down select list. See these code examples:

    http://www.gravityhelp.com/forums/topic/populate-dropdown-with-list-field#post-48504
    http://www.gravityhelp.com/forums/topic/list-field-drop-down-option#post-66555

    I think the list field will do what you want, and you can make two fields drop down select boxes with some additional code.

    You would have to get that working first and address getting that information into the BuddyPress profile later.

    Posted 11 years ago on Friday July 20, 2012 | Permalink
  5. One more question on this....I would like to add a File Upload box next to each list grouping...so that if the user clicked the + icon to add another row, they could populate the columns and say the last column is a file upload box. Can I use the same general principal to add that upload box for each list row?

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  6. By default the list type field is text, but you can add a drop down. The file upload field is not supported in the list type field. You would have to use conditional logic to add an additional file upload field when the additional row is shown, or come up with some other work around.

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  7. Conversation is continued here:
    http://www.gravityhelp.com/forums/topic/list-field-and-photo-upload#post-76329

    Posted 11 years ago on Wednesday September 19, 2012 | Permalink

This topic has been resolved and has been closed to new replies.