We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

in Now Mobile, hide Checkbox Variables with False Values at My Requests Record Screen

savaliya
Tera Expert

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.

Image (5).jpg


Has anyone implemented this in Now Mobile? Any suggestions would be appreciated.
Thanks!

3 REPLIES 3

Sanjay191
Kilo Patron

Hi @savaliya 


Please refer the below steps

 

1. Please uncheck the 

Sanjay191_1-1782466846123.png

 


2. Please create the mobile ui policy  with your respective condition (please change according to your requirement)

Sanjay191_0-1782466827318.png


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.

Sanjay191_2-1782466999749.png

Sanjay191_3-1782467200009.png

 

 

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

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.

 

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