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