Hi All,
How to enable the dropdown field based on gridLayout selection?
actually i am trying with the below code but it is not working as expected: Please help and suggest logic so that i will try to test it.
a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "Dropdown") }, columnConfigs: { a!gridLayoutColumnConfig(width: "DISTRIBUTE") }, rows: { a!forEach( items: ri!data, expression: a!gridrowLayout( contents: { a!dropDownField( disabled: if( and( rule!APN_isNotEmpty(ri!selectedid), contains(fv!item.gfcid, ri!selectedid) ), false, true ) ) } ) ) } )
Discussion posts and replies are publicly visible
your contains() appears to be backwards. the order is contains(array, value), whereas you have the value then the array.
Thank you MikeIts working
Cool, thanks for confirming. FYI if you would press "verify" on my original answer, i'd enjoy the invisible Appian Brownie Points :)
Done Mike
thanks