I am currently using a script to check a users role and then disable certain fields with javascript, like so:
Xrm.Page.getControl("address1_line1").setDisabled(true);
Is there a way to this with the deactivate button?
Image may be NSFW.
Clik here to view.
I've read you can download Ribbon editors, but that doesn't really appeal to me as I already have all the logic in place in my script regarding what roles can access what. It would be a lot simpler to manage everything in one place. If it's not possible, what's the recommended way to edit the ribbon?