- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:41 AM
Hello,
I'm having an item variable that needs to be hidden on Catalog form, RITM and SCTASK levels but displayed under the tab of Addition Details in Portal. However, its visibility is controlled by the value of another variable.
Is there any suggestion to achieve this behavior?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 04:58 AM - edited 12-11-2023 04:59 AM
Hi @Ankur Bawiskar,
Thanks for your update. I've also read that article and it seems not to fit with my requirement as it will change to different layout entirely.
Following with @Kai Tingey suggestion, I have an idea to use UI Policy script. However, the pain point is there are some variable types will not be shown up in the Standard Ticket page or Approval page. So I ended up using the allowed ones. One thing I notice that if a field is not filled up with anything, it will not be displayed in the above pages. Therefore, based on that "feature" I was able to get what I wanted.
I appreciated all the recommendations have been shared.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2023 04:26 PM - edited 12-10-2023 04:28 PM
this is a tricky one.
you could potentially do it with advanced ui policy script. My thinking would be you would need to check for any approvers on the current RITM, then look them up and evaluate them against current logged in user.
if conditions match then set field visibility to true.
if UI policy hiding / revealing the variable does not work on the approval page, then you might need to do it another way. Perhaps a hidden field on the RITM that you can show in the approval widget only.
alternately you could just plug the information from the variable into the approval email and deliver it to the approving user that way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 04:31 AM
is it not showing as of now in the additional details section on portal?
Your understanding is correct. Variable summarizer in the standard ticket tab does not honour UI policies
Not all variable types can be shown on portal
Check this link and try these steps
From the Application Navigator:
Go to the Standard ticket configuration
Select table as sc_req_item, sc_task, or sc_cat_item (the table where the UI policy runs)
In Tab configuration --> Go to the Tab name : Additional details
Type : Choose "Variable Editor (Read only)" in the dropdown.
Widget: Optional, you may populate as Standard Ticket Tab or widget you are using
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 04:58 AM - edited 12-11-2023 04:59 AM
Hi @Ankur Bawiskar,
Thanks for your update. I've also read that article and it seems not to fit with my requirement as it will change to different layout entirely.
Following with @Kai Tingey suggestion, I have an idea to use UI Policy script. However, the pain point is there are some variable types will not be shown up in the Standard Ticket page or Approval page. So I ended up using the allowed ones. One thing I notice that if a field is not filled up with anything, it will not be displayed in the above pages. Therefore, based on that "feature" I was able to get what I wanted.
I appreciated all the recommendations have been shared.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2023 05:00 AM
Glad to know that my comment helped.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
