Simply add this ‘if statement’ into a function to stop it from running:
if (Xrm.Page.context.client.getClient() != “Mobile”)
Now the function will run if the code does not equal mobile.
Hope that helps resolve any errors you come across. For more Dynamics 365 how to guides and tips – make sure you subscribe to our blog!
Happy Dynamics 365’ing!