The CreatorCon Call for Content is officially open! Get started here.

Make UIaction button visible on RITM for only if ITEM belongs to "xyz" scope and RTIM state == 4

Sachin Gavhane
Giga Guru

I wanna make a button with the name "Re-Submit"
this button should be visible on RITM only when item belongs to "xyz" scope and state of the RITM is closed incomplete.

 

In the screenshot attached item belongs to "xyz" scope , so for items belonging to other scope this button should not be visible

 

pls help with the script

 

thanks in advance

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Sachin Gavhane 

try this

current.cat_item.sys_scope.name == 'Your Scope Name' && current.state  == 4

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

View solution in original post

3 REPLIES 3

Gurpreet07
Mega Sage

it should be 

 current.sys_scope == 'xyz' && current.state=='4'

Ankur Bawiskar
Tera Patron
Tera Patron

@Sachin Gavhane 

try this

current.cat_item.sys_scope.name == 'Your Scope Name' && current.state  == 4

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

Hi @Ankur Bawiskar 

 

I have another query
I want to populate catalog item form automatically from the RITM

I am creating another question for this , requesting you to help me with the script for the same

https://www.servicenow.com/community/developer-forum/to-auto-populate-the-catalog-item-form-directly...