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
I found success w/ this use case in 23.1 by mimicking the above code w/ a few changes shown below. It mainly just adds a bit more handling for when you're de-selecting a row.
a!gridField( /*...*/ selectionValue: local!gridSelection, selectionSaveInto: { local!gridSelection, if( a!isNullOrEmpty(local!gridSelection), { a!save(local!gridSelection, {}), a!save(local!selectionIndex, {}) }, { a!save(local!selectionIndex, reverse(local!gridSelection)[1], a!save(local!gridSelection, local!selectionIndex) } ), /*more saves*/ }, /*...*/ )