Question
Validation on a Repeating Grid of Checkboxes
Working in 7.2.1, we have a repeating grid with checkboxes where none are selected initially. We want to include a validation to require at least one of the checkboxes is checked before submission. Working from a previous example (https://pdn.pega.com/community/pega-product-support/question/how-do-validation-repeating-grid) we were unable to follow exactly where the when rule should be created and where the rule using it would be instantiated. Any clarifications (we are new to Pega) with more specificity would be greatly appreciated.
***Updated by moderator: Lochan to update Categories***
Hi,
A checkbox is associated with a TrueFalse property. If the checkbox is not checked, the value is false, otherwise is true.
A validate rule (called from FlowAction) needs to be written to check the values.
https://pdn.pega.com/community/pega-product-support/question/how-do-validation-repeating-grid
The above discussion mentioned several ways ("IsInPageList" or "countInPageListWhen") to check values.
You only need to check if there is one True value in the list for the checkbox property, then submission can continue.