In the mobile app - What is the best way to remove a choice from a choice list?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 03:29 AM - edited 11-08-2022 03:33 AM
I'm currently optimising a form in the mobile app in Studio and need to do what appears to be client side scripting.
In the app on Work Order Tasks, the user presses a button and a list of options come up. I would like to hide an option or two from that list on mobile.
In desktop view it would be a UI Policy or Client Script with:
g_form.removeOption('u_on_hold_reason', 'risk_assessment_failed');
However I cannot find anywhere to place such a script in mobile app as it appears there is no client side scripting options.
Does anyone know an alternative solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 08:05 AM
@Jack Hoblyn I am not aware of your entire scenario but can you go with below:
1. Create a new field without those values and hide it on desktop.
2. Make it visible on mobile.
3. Write your logic on mobile based on that field.
Please mark the answer correct/helpful accordingly.