Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

UI Action condition based on Variable Value - sc_task table

Sam Ogden
Tera Guru

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

1 ACCEPTED SOLUTION

dvp
Mega Sage

As the UI Action is on task, try

current.request_item.variables.functional_non_functional == 'non_functional'

 

View solution in original post

4 REPLIES 4

Matthew Smith
Kilo Sage

Hi Sam

I think this should work for you:

current.variables.functional_non_functional == 'non_functional'

Hope it helps

Matt

Cheers Matt, worked a treat.

dvp
Mega Sage

As the UI Action is on task, try

current.request_item.variables.functional_non_functional == 'non_functional'

 

Cheers dvp, worked a treat.