I've got FormItem
s getting generated against the tables in my SQL database. I'm looking through the generated FormItem
s for my TableModification
and I'm noticing an interesting optional parameter Action validationErrorNotifier
.
How does one use this parameter and what benefits does it bring?
Let's say you have a form with two phone number fields. And let's say you want to have a subsequent
Validation
that produces an error if the two phone numbers don't have matching area codes. You could use thevalidationErrorNotifier
parameter in conjunction with abool
to make sure you only execute the subsequentValidation
when both phone numbers are valid: