Quantcast
Viewing all articles
Browse latest Browse all 79901

How can I disable Account Deactivate button using Javascript?

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?


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>