validateSpecific

open override fun validateSpecific(controlContext: ControlContext, value: List<RepeatableRow>)

Validates that values are unique across the rows of a repeatable control. Works on the global form state.

Algorithm:

  1. Takes all rows of the control

  2. Builds a uniqueness key for every row from the values of the given fields

  3. Checks whether the key has already been seen

  4. On a duplicate, sets an error with the row number

The check runs only when uniqueFields is not empty.

Parameters

controlContext

control name with the row context (needed to build hierarchical names)

value

the rows of the repeatable control