Announcements
No record found.
Hi everybody
I have a question regarding mandatory fields.
Is it possible to make a field mandatory (required) in the mobile app, but not in the ordinary backoffice UI.
I would like to have a field required on an asset, but first when the workorder is dispatched to a technician.
Hope you can help
You can try implementing a form script that will detect the platform the client is using with navigator.useragent and then dynamically setting the required level of the field with setRequiredLevel.
www.w3schools.com/.../prop_nav_useragent.asp
docs.microsoft.com/.../setrequiredlevel
You can use getGlobalContext.client (Client API reference) in model-driven apps - Power Apps | Microsoft Docs to check the client type (Web/Mobile..)
Or you can specifically check for the App Module name getCurrentAppProperties (Client API reference) in model-driven apps - Power Apps | Microsoft Docs (the FSM unique name would be msdyn_FSMobile)
For the check if Work Order is dispatched to a technician, it would depend on what it means for a Work Order to be dispatched to a technician. With the OBB FS scenarios, you can validate that by checking if there are any Bookable Resource Bookings (related to this Work Order) assigned to the current Resource user. (use retrieveMultipleRecords (Client API reference) in model-driven apps - Power Apps | Microsoft Docs). However, please be aware some data might not be available depending on if the mobile app is in offline/online mode.
Yes there are a number of ways to do that. I would actually prefer creating a new form and adding that in D365 FS Mobile app. This way you can add further mandatory fields in that form.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
FSRon 74
James White 25
AT-28040446-0 20