'validationError' Common Field Property
Open
@timbl is already working on this.
Since Dec 16, 2019.
enhancement
- Dominant language
- TypeScript
- Stars
- 153
- Forks
- 46
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 7
Description
User Story
As a Form Designer, I can define the error to be displayed if a user enters invalid data in a field (e.g., integer is out of range), so it is clear to the user how to correct the validation error.
Acceptance Criteria
- In a Form Model, the 'validationError' property can be optionally defined for a data field, that defines the error message(s) that should be displayed is the entered data fails validation.
- When the form is rendered, if the entered data is found to be invalid:
a. If the 'validationError' property is defined, the custom validation error message is displayed.
b. If the 'validationError' property is not defined, a generic validation error message is displayed.
Dev Notes
- validationError defined as a thing allowing the validation error messages in multiple languages to be defined:
ui:validationError [ rdfs:label "Age must be 18 or older"@en ] ;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.