How to hide the RITM variables when clicking the Preview (info icon)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hide the two variable fields only if they are empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
UI policy or Client scripts won't work when previewing the record so you just remove the variable editor from the sys_popup view and let the users open the record to see the variable and let the UI policy and UI action to work
or create a UI macro and UI formatter and in the UI macro you can make a decision based the value existence whether to show the variable or not
and add that new UI formatter in place of the variable editor in the sys_popup view
I would go with the first approach removing the variables from the sys_popup view(preview) and let the users to open it to find the information
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
solution already shared by @Chaitanya ILCR
Please mark that response as correct and close the thread.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
