Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Dependent fields for marketing form

Posted on by 5

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.

  • RE: Dependent fields for marketing form

    Thanks for this Marten, haven't had a chance to delve into these yet but will let you know how I go.

  • mhoekstra Profile Picture
    mhoekstra 140 on at
    RE: Dependent fields for marketing form

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans