in Now Mobile, hide Checkbox Variables with False Values at My Requests Record Screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Community,
In ServiceNow Now Mobile, on the My Requests/ record screen, the Details tab displays catalog item variables.
I have several checkbox variables, and when they are unchecked, they show as false.
I would like to hide checkbox variables when their value is false and only show them when they are true. This works for RITM fields, but I haven't found a way to do it for catalog variables.
Has anyone implemented this in Now Mobile? Any suggestions would be appreciated.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @savaliya
Please refer the below steps
1. Please uncheck the
2. Please create the mobile ui policy with your respective condition (please change according to your requirement)
3. Now you need to create a ui rule for the variable. its required the sys_id of the variable .
tip: copy the sys_id of the variable and paste form the SNUTIL so it easily mapped.
4. remove your mobile cache and test it again , see the magic
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi, thanks for your response.
The Visible on Summaries setting works fine. But it seems the Mobile UI Policy doesn't work for variables. Have you checked it in the mobile app? I hide the variables using Visible on Summaries, which works, but when I try to show them using Mobile UI Policy, it doesn't seem to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @savaliya
An alternative approach is to create the required fields on the RITM, hide them in the native UI, and then use a Mobile UI Rule to display them only in the mobile experience.
I believe this approach should work because, due to a limitation on the mobile platform, Mobile UI Rules cannot control the visibility of catalog variables. However, they can control the visibility of fields on the record. Therefore, creating the required fields on the RITM and managing their visibility through a Mobile UI Rule would be a suitable workaround.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You