RE: Hide HTML in Email Designer
Hi Nina,
The HTML designer cannot be set as read only for the designer panel is modified in conjunction with the HTML panel.
You can try to make it invisible with JavaScript.
function HTMLinvisible(executionContext){
var formContext = executionContext.getFormContext();
formContext.getControl("msdyncrm_designerhtml").setVisible(false);
}
And here is the code for checking the role of the current user.
XrmServiceToolkit.Soap.IsCurrentUserRole("xxxx");
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Nya