Skip to main content
Post a question

Notifications

Announcements

No record found.

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

Ribbon enable rule script triggers even before form loaded completely

Like (0) ShareShare
ReportReport
Posted on 7 Sep 2022 12:20:37 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,204 User Group Leader on 07 Sep 2022 at 15:00:53
    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

Congratulations 2024 Spotlight Stars!

Kudos to all of our 2024 community stars!

Meet the Top 10 leaders for December!

Congratulations to our December super stars!

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,596 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading started