Displaying Drop Down Field Conditionally

I am learning Appian now.
In my UI, secondColumnContents contains 3 dropdownFields. But one of dropdownFields only be displayed under one condition. How can I display this dropdownField under the condition. So, the UI may display 3 dropdownFields if the condition is satisfied. Otherwise, it will display 2 dropdownFields. Could any one show me an example. Thanks.

OriginalPostID-221194

OriginalPostID-221194

  Discussion posts and replies are publicly visible

Parents
  • Hi ,

    Please find the below ways if it helps:

    1.a!sectionLayout(
    label: Cons!SectionLabel_Name,
    showWhen: ri!sendingTask/*Condition to check*/
    contents: {
    Dropdownlist
    }
    )

    2. if(
    ri!showWhen,/*Condition to check and put the condition here in ri!Showwhen*/
    a!sectionLayout(
    label: Cons!SectionLabel_Name,
    contents: {
    Dropdownlist
    }
    ),
    ""
    )
    3.Even dropdownfield has a property of showwhen you can use that well.

    a!dropdownField( showWhen:)
Reply
  • Hi ,

    Please find the below ways if it helps:

    1.a!sectionLayout(
    label: Cons!SectionLabel_Name,
    showWhen: ri!sendingTask/*Condition to check*/
    contents: {
    Dropdownlist
    }
    )

    2. if(
    ri!showWhen,/*Condition to check and put the condition here in ri!Showwhen*/
    a!sectionLayout(
    label: Cons!SectionLabel_Name,
    contents: {
    Dropdownlist
    }
    ),
    ""
    )
    3.Even dropdownfield has a property of showwhen you can use that well.

    a!dropdownField( showWhen:)
Children
No Data