I want a drop down list item to automatically filter and populate based on a selection from a drop down list

I have a drop down list of “customers” (Field 1) and I want another drop down list field to automatically filter and populate based on what is selected in Field 1. (Or find another way to address this using other field types.) How do I do this in gravity forms without having to purchase additional services such as GravityWiz? I am not a programmer so do not know coding very well but am learning. Please provide any assistance in as much layman’s terms as possible or provide an example of code so that I might learn from it. Thank you so much for any help!

1 Like

Looking to do the same!

It depends on where this data is stored.

I am populating a dropdown dynamically based on custom post types and could provide that code snippet but it might not apply to you if the list of “customers” isn’t a post type.

Are you using WooCommerce? Is your list of customers static (as in you already have those options to choose from, that isn’t being populated dynamically) and you just want dynamically populate Field 2 based on user interaction with Field 1?

—Tessa Watkins, Interactive Developer

I am only using Gravity Forms add in to WordPress. Nothing fancy and do not want to purchase any additional app add ons. “Data” is just a drop down list of options in each field. The primary drop down list form field is (Field 1: Account Name) and I want another drop down list form field [or just a simple text field] to automatically populate (Field 2: “Unit Size”) based on their account name selection from the drop down list found in Field 1, so in essence, the answer to:
Is your list of customers static (as in you already have those options to choose from, that isn’t being populated dynamically) [YES] and you just want dynamically populate Field 2 based on user interaction with Field 1? [YES]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.