web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 :) 

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at
    RE: Marketing form country list (limit values)

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans