Hello,I'd like to be able to select only one choice in a grid selection at the same time.Is there a way to force that?
OriginalPostID-202357
Discussion posts and replies are publicly visible
...
selectionValue: local!gridSelection, selectionSaveInto: { local!gridSelection, if( length(local!gridSelection)=1, local!gridSelection, a!save(local!gridSelection, local!gridSelection[2]) ) },
I don't think this is correct - your grid will error if you deselect a row because the if() condition will return false and the second save won't have 2 values.
There's actually a recipe in the documentation that describes how to do this: docs.appian.com/.../recipe-limit-rows-to-one.html
This is a very old thread, and several of the original comments contain robust and still-working solutions to this. Though with the advent of the 19.2+ paging grid, all of this is a bit out-of-date. For instance, designers now have the ability to turn off selection for all rows other than a single selected row, among other possible options.