Show an item variable in Additional Details tab

Hao Vi Mac
Tera Expert

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.

1 ACCEPTED SOLUTION

Hao Vi Mac
Tera Expert

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.

View solution in original post

8 REPLIES 8

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.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Hao Vi Mac 

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

Variable summarizer in the standard ticket tab does not honour UI policies/display submitted variabl... 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hao Vi Mac
Tera Expert

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.

@Hao Vi Mac 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader