web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Marketing form country list (limit values)

(0) ShareShare
ReportReport
Posted on by

Hey,

On our external CMS, we are using an embedded Dynamics Marketing form which has a field called 'Country'. This is a look-up field which refers to a separate country entity where the names are stored. This works well in CRM and we finally have it working on our embedded forms (still a little bit slow unfortunately...).

However, we were wondering if it is possible with some scripting to filter this list as to only show several pre-defined countries? We ideally would like to edit the forms for each region so that potential customers in that region only see countries that are relevant to them. Off course we could create a lot of fields with custom option sets and map that with flow/workflows to update after each submission, but it would be much nicer if a simple filter query could fix this as well.

Hopefully somebody has some suggestions :) 

  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Niels,

    From my test by using inspector, I found that items of list of lookup field will change dynamically based on what we input in the field.

    Hence it might not easy to add script to customize it.

    If there are only several pre-defined countries, you could try cascading form fields to set relationship between two option set fields.

    pastedimage1599116241322v1.png

    pastedimage1599116322754v2.png

    Of course, you still need to run a flow to map the selected option to corresponding country record of lookup field.

    Regards,

    Clofly

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 103 Most Valuable Professional

#2
11manish Profile Picture

11manish 63 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 46

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans