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

  • David Jennaway Profile Picture
    14,065 on at
    RE: Ribbon button on form come back to visibility after displaying none

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans