'validationError' Common Field Property
Offen
@timbl arbeitet bereits daran.
Seit 16.12.2019.
enhancement
- Vorherrschende Sprache
- TypeScript
- Sterne
- 153
- Forks
- 46
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 7
Beschreibung
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 ] ;
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.