Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Ribbon enable rule script triggers even before form loaded completely

Posted on by 335

 Hi All, 

  I have a custom ribbon button with enable rule and  three forms which are shown based on the product type. For two forms the ribbon button enable rule works fine, but for third one the enable rule related script triggers even before the form fields are available or form is loaded fully. This is causing issue as it gets null value for the particular field which is involved in condition checking. 

Any idea on why its causing and how to resolve this without adding any delays to code execution. ?

Thanks in advance for your help.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,198 User Group Leader on at
    RE: Ribbon enable rule script triggers even before form loaded completely

    Hi Prashanth,

    Custom Enable rule support async operations. So, I recommend performing a retrieve to get data from the server instead of getting data from the client side.

    Good Luck !

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans