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 :
Microsoft Dynamics CRM (Archived)

Ribbon button on form come back to visibility after displaying none

(0) ShareShare
ReportReport
Posted on by

Hi Team,

We recently implemented the require.js for refactoring the code in CRM 2016 on-premise. We implemented the code to hide the buttons on form if logic(business criteria) is fulfilled by data. The code we implemented has a async call to CRM to check the data exists or not. If data exists hide the buttons. 

Though the code is working when we debugged this but its result is not consistent on form. Like sometimes button get hidden but sometimes come back to form after get hidden. 

We are just loading the webresources to form properties of entity but not calling the start function from OnLoad event.

Please suggest us a good approach to fix this issue.

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    You should be able to call your function from a CustomRule bound to the relevant buttons. This should ensure the correct processing sequence

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans