I am trying to create a text entry form for entering and updating contact information. As part of that information, I want people to indicate what (arch)diocese they live in; however, (arch)diocese are dependent upon state and do not immediate follow state; ZIP code follows state. For example, Provo, UT 84604 is what people are familiar with, not Provo, UT Salt Lake City 84604 (where "Salt Lake City" is the diocese). Ideally, I would want respondents to be able to type in their state with an auto-complete (similar to https://www.qualtrics.com/community/discussion/12/adding-autocomplete-javascript-to-my-survey) with a list of states (this would allow for default choices to be fed in from a contact list embedded data via piped text), then based on the selected state, a list of associated (arch)diocese would be allowed to be chosen from another text entry box with auto-complete in the (arch)diocese item, which would separated by the ZIP code.
Now, an extension of the main issue are those who do not live in a US state. I would like to allow a normal text entry form box to be the drill-down option for "(arch)diocese" if respondents were to indicate they do not live in the USA.
The order and structure of the questions would look something like this:
City [Normal text entry line with default choices from contact list embedded data via piped text.]
State [Text entry line with auto-complete based on a list of states and "I live outside the USA." with default choices from contact list embedded data via piped text.]
ZIP/Postal [Text entry line, with some validations based on inside or outside USA. Input default choices from contact list embedded data via piped text.]
(Arch)Diocese [Text entry drill-down, dependent on state. Uses auto-complete. Allows for normal text entry if State = "I live outside the USA." Default choices from contact list embedded data via piped text.]
Best answer by TomG
View original