How to show ui action only for one catalog item

Vani14
Tera Contributor

we have created approve ui action button for approval table and that button has to be displayed only for one catalog item

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Vani14 ,

Please check 

current.sysapproval.cat_item == 'sys_id of cat item'

 

Please mark my answer correct and helpful if this works for you.

Thanks and Regards

Sarthak

View solution in original post

17 REPLIES 17

@Taha El alami may i know this property name?

@Vani14  run this on your bg script to check even if the property not exist in your list 
var instanceurl = gs.getProperty('glide.servlet.uri')+'';
gs.print(instanceurl);

IanCox
Tera Contributor

Want to make a UI action appear only for a specific catalog item? Here's how you can achieve that:

  • Identify the unique field: Catalog items likely have a unique identifier field, like a catalog item number or name.

  • Create a condition: While configuring the UI action, look for the "Condition" section. This is where you'll define when the button should show up.

  • Use the identifier: In the condition field, write a script that references the unique identifier field of your catalog item.

  • Sample condition: Here's an example: current.cat_item_number == "ABC123" (Replace "ABC123" with your actual catalog item number). This script checks if the current catalog item's number matches "ABC123" and only shows the button if it does.

  • Remember to save! After configuring the condition, save your UI action. Now, the button should only appear for the catalog item you specified.