Is it possible to base an UI action condition on a catalog item variable?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2019 04:20 PM
Ive created a UI action that I only want to appear on a specific catalog item, but I also want to toggle its visibility based on the value of a specific variable on the catalog item. So far all I have is:
current.cat_item.sys_id=='66a8d044db7db344f77bf3931d96196c'
but would is be possible to include:
current.cat_item.variables.'name of variable'==' '
Labels:
- Labels:
-
Scripting and Coding
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2019 06:21 PM
Yes, you can.
If the UI Action is on the Requested Item table, then the condition syntax would be
current.cat_item.sys_id=='66a8d044db7db344f77bf3931d96196c' && current.variables.variablename=='somevalue'