validations: if( a!forEach( items: ri!grid, expression: count( fv!item['test}iscorrect'] ) > 1 ), "Only one fav can be selected", null ),
Hello All,
I have an editable grid with multiple rows.
I have fav button on each row. I need to validate only one fav is allowed per user. How can I achieve this pls.
Here validation is not working. All my grid data is coming from ri and saving back to ri.
Discussion posts and replies are publicly visible
use if( count(where({<favButton_gridData>})) >1,false,true) in the disable parameter of favButton field ( considering favButton as boolean type)
Thank you . But my requirement is to validate in editable gridlayout in validation section. My code snippet pasted.
yes in that case you can try this count() part and throw validation in validation parameter. Use the column name directly instead of fv!item. since fv!item won't have scope in validation parameter