I am using constraint for the validation my multi value paragraph field.
I can correctly implement the different validation rules but I haven’t found out how to highlight only the erroneous field(s).
Here is my violation declaration
$this->context ->buildViolation($constraint->modaliteRequise) ->atPath((string) $delta . 'subform.field_modalite.0') ->addViolation();
This highlights all fields of all paragraphs.
How can I only highlight the missing field in the affected paragraph?
Thanks Rainer