Sometimes we need to make client side scripting is CRM intelligent enough to identify which device is running
and then only run some script and not others.
This method was introduced with Microsoft Dynamics CRM Online 2015 Update 1
The values work as below:
Value Form factor
For eg, if there is a code particular to Desktop:
var formFactor = Xrm.Page.context.client.getFormFactor();
if (formFactor == 1)
//Code specific to run on desktop
Hope it helps and Happy CRMing!