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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans