Skip to main content
davinar9817
December 13, 2022
Solved

How to configure show when

  • December 13, 2022
  • 20 replies
  • 1 view

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()

Best answer by mikes0011

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

showWhen: ri!choiceValues = 1,

20 replies

stefanhelzle0001
Brainy
December 13, 2022

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

davinar9817
December 13, 2022

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

mikes0011
Brainy
December 13, 2022

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