Hi forum folks, a question about marketing forms...
My organisation wants to include dependent/cascading drop downs in our website's marketing forms. Specifically, we want to include fields where “Country” is the parent field and “State or province” is the child field. “Country” is a dropdown option set with all countries listed alphabetically. If the user selects either Australia, Canada, or the United States, the State or province field presents them with a dropdown of all the states for that country. I have created both of these fields as global option sets and set up the field relationships in the marketing form. This aspect seems to be working fine.
The issue I’m running into is with the other countries. We only really need the state specified for those three countries listed above, and we can hopefully avoid unnecessary time and effort involved in setting up states or provinces for all countries. However I am getting an error message that each child field requires a parent field in order to create a contact record. This happens regardless of whether or not the child field is marked as required.
The outcome I want is this: when a user selects a country other than AU, US or CA, the state or province field becomes inactive (greyed out) OR it allows them to enter a response as text.
A less elegant solution would be that selecting any of those other countries causes the state province field to display “Outside of the US, Canada or Australia” or something to this effect, but that feels kind of exclusionary and – well, rude. This would also require someone to set those dependent relationships for all countries to trigger that one response, which seems like a waste of time.
Would love to get your input on this. Thanks.
Thanks for this Marten, haven't had a chance to delve into these yet but will let you know how I go.
Hi,
You could use cascading marketing form fields. See lystavlenhistoric.home.blog/.../ & meganvwalker.com/.../. This will work fine for Australia, Canada and US. But for all others you have to set this relationship manual to Outside US.
Combined with or only using something like hide and show the state field based on the content of country. See www.linkedin.com/.../ and meganvwalker.com/.../.
Hope this might help you.
Marten Hoekstra
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156