I have a CRM form that that looks good when viewed from a monitor. However, it doesn't look very good on a phone or tablet. I would like to have another form load that is more mobile UI friendly if the user is viewing the app from a mobile device. Both forms are from the same entity.
Does anyone have any advice on how to detect the type of device and load the appropriate form automatically?
Thanks.
*This post is locked for comments
Thanks for the tip. I think the getClient() method is what I need.
Normally you can use the Xrm.Page.ui.formSelector and the navigate() method to open a given form, but the Xrm.Page.ui.formSelector is not available in the mobile client. You could maybe default to using the mobile-friendly form, and use the navigate() method to open the other form if a non-mobile client is used - you can use context.client.getClient() to determine if the client is Web or Mobile
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156