I want different Account form on CRM side and different on Mobile. Because I want to make it read only on Mobile.

0
95
Forum Post: Change the Filter On option on Opportunity Associated View for Account form


I want different Account form on CRM side and different on Mobile. Because I want to make it read only on Mobile. I am writing a JS code for it. But its not working, Can somebody pls help me with it-

function GetClientValues(executionContext)
{
//Step 1: Take the client
formContext = executionContext.getFormContext();
var clientContext = Xrm.Utility.getGlobalContext().client;
//Step 2: check if the client is mobile
if (clientContext.getClient(“Mobile”)!==null)
{
//Step 3: Disable fields
formContext.getControl(“emailaddress1”).setDisabled(true);
formContext.getControl(“Fax”).setDisabled(true);
formContext.getControl(“websiteurl”).setDisabled(true);
}
else
{
return;
}
}



Source link

Leave a reply

Please enter your comment!
Please enter your name here