Is it possible to make conditional default choices in a webform?
Hello,
I'm trying to figure out how to easily create conditional default choices in a webform.
**Use case: **
If a webform asks for the user's state, the choices in the next field "County" should be limited to only the counties in the chosen state.
The only way that I see to do this now, is to create 50 different conditional "County" fields with the options for each state. This isn't ideal, because there are other fields (ex. "City") which would then be dependent on the "County" selection, and the number of fields will grow exponentially.
I'm envisioning a data table with the states, cities, and other relevant choices listed, and then conditional references for the form field options. Is this possible?
Best Answer
-
@Anna_272419 What you're describing isn't precisely available today. It can be done with a second web form emailed out to the user (as described in step 5 below), but I'd suggest taking this approach to provide a good user experience and also get clean data:
- Create a data table that you described with columns for States, Counties, and Cities.
- Set the field type of the County and City fields as Text.
- When the form is submitted, use Tables: Apply filters to filter the data table to the selected State.
- Use Tables: Find similar text to perform fuzzy matching on the filtered table to find the County and then the City.
- (Optional) If the Similarity rating from Tables: Find similar text action is not high enough, use Tables: Convert table to text and Field: Set value of a multiple choice field along with Email: Send a form to send a correction form to the user with drop-down choices for the County and City.
Finally, I suggest you upvote these 2 ideas to help us prioritize future releases:
6
Answers
-
Thank you, that's an option I hadn't considered.
0