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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

OnLoad script after businsess rule?

(0) ShareShare
ReportReport
Posted on by 20

Hi,

I have the script that make field 'name' required on form load. This field is set to optional in CRM. There is also business rule, which changes 'name' to optional in some cases. (it wasn't me who set this like this)

Sometimes I have the problem that in the case in which business rule should make the field optional it's still required, is it possible that sometimes js script i loaded after business rule or maybe business isn't called at all?

Thank you for any help,

Henryk

I have the same question (0)
  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    In CRM Javascript VS Business Rule-> The script trigger first then business rule.

    Now, in above case, we can do below things:

    1. Delete/Deactivate the business rule.

    2. Update the logic business rule logic. Like it should be trigger when user in Edit mode.

    3. If script logic can be handled through business rule then move to business rule and remove the script.

    4. If you want the "name" to be mandatory all the time then in Field Customization set it to business required.

    Thanks,

    Pradeep.

    Please mark this as VERIFIED if it helps.

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 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans