Skip to main content
davinar9817
Known Participant
Dec 13, 2022 8:04 PM UTC
Solved

How to configure show when

So, I need to use visibility/showWhen to display a dropdown if a certain choice of radio button is selected.

The format is kind of like this, the two dropdowns are supposed to be hidden until 'Yes' is selected in the group of the second radio buttons.

This is currently the code I have. I'm still fairly new to Appian and trying to figure things out!

I have experience w/Python/C#/Vis Basic so explaining in those terms could be helpful as well

if(
  a!radioButtonField(choiceLabels: "Yes"),
 	showWhen:true()

mikes0011
mikes0011Answer
Brainy
Dec 13, 2022 10:07 PM UTC

You can replace the entire highlighted block with simply the following:

showWhen: ri!choiceValues = 1,

The Expression Guru

20 replies

stefanhelzle0001
Brainy
Dec 13, 2022 8:08 PM UTC

You can put any expression into that parameter that evaluates to a boolean. Typically we use a comparison operator like <, >, =.

davinar9817
Known Participant
Dec 13, 2022 8:18 PM UTC

So I typed it out correctly, but I just need to use a different operator?

mikes0011
Brainy
Dec 13, 2022 9:28 PM UTC

I think you'll need to provide a more comprehensive code snippet - what you have above does not look like a valid format at all.

The Expression Guru