- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019 02:29 AM
Hi All,
I have a catalog item that has a multiple choice variable called 'functional_non_functional', with 2 options of 'functional' and 'non_functional'.
On the catalog task that is created I want to make a UI Action that is only visible when the 'non_functional' option is selected from the variable, not sure how to do this. I know I could use:
current.request_item.variables.variablename == 'functional_non_functional'
To get the UI Action to appear when the variable exists, but how do I check the value of the variable within the condtion?
Thanks
Sam
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019 02:48 AM
As the UI Action is on task, try
current.request_item.variables.functional_non_functional == 'non_functional'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019 02:46 AM
Hi Sam
I think this should work for you:
current.variables.functional_non_functional == 'non_functional'
Hope it helps
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 01:40 AM
Cheers Matt, worked a treat.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2019 02:48 AM
As the UI Action is on task, try
current.request_item.variables.functional_non_functional == 'non_functional'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 01:41 AM
Cheers dvp, worked a treat.