Function: getValidationErrorKey()
getValidationErrorKey(
linkId,repeatInstancePath?):string
Builds the key used to store/look up a validation OperationOutcome in invalidItems.
For non-repeating items (empty path) the key is simply the linkId, so behaviour is unchanged.
For items inside one or more repeating group instances, the key is suffixed with the path of
enclosing instance indices (e.g. myField///1 or myField///0.2 when nested). This lets each
repeat instance track its own validation errors instead of all instances sharing a single key.
Indices are positions within the QuestionnaireResponse, since that is what validation walks.
Parameters
| Parameter | Type |
|---|---|
linkId | string |
repeatInstancePath? | number[] |
Returns
string