Hi All!
My question is how to make a page in read only for the current user using Javascript.
something like this:
function function() {
var userId = Xrm.Page.context.getUserId();
var owner= Xrm.Page.getAttribute("ownerid").getValue();
var ownerID = owner[0].id;
// if user#owner
if (userId != ownerID) {
//make a current user in readonly
}
}
Do you have any idea?
thank you in advance
*This post is locked for comments
I have the same question (0)