Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Business Rules

(0) ShareShare
ReportReport
Posted on by 5

I have set up a business rule where when a county in one field is selected then the townships will populate in another field. I have the townships set to the default value. The user I am building this for would like to be able to edit the township field "if necessary" Does anyone know if I can use an event handler to do that or have any other suggestions as to how to make the field stay editable after the rule has been applied? Or can it even be done? 

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Rules

    Hey Stacy,

    an interesting requirement that may be a bit tricky when working with Business Rules.

    Could you post a screenshot of your Business Rule? What exactly do you mean "set to the default value".

    I remember having some issues some time ago, when I used the "Set Default value" action in a Business Rule. I'm pretty sure that the "Set Field Value" action solved the issue back then for me.

    Otherwise, if the magic of Business Rules don't apply, there is always JavaScript to help.

    You could write a JS-Function which triggers onChange of the county field and populates the Townships with the necessary value(s). So when a user needs to do some "adjustments" after the selection of a County it's still possible. Because the JS-Function will only trigger onChange of the County field.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans