SolidOS / SolidOS/solid-ui

'requiredError' Common Field Property

Offen
#138 3 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@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 fails to enter a required field, so the fact that the field is required is clear to the user.

Acceptance Criteria

  1. In a Form Model, the 'requiredError' property can be optionally defined for a data field, that defines the error message that should be displayed is the user fails to enter a value.
  2. When the form is rendered, if the data field is required #130 and the user fails to enter a value:
    a. If the 'requiredError' property is defined, the custom required error message is displayed.
    b. If the 'requiredError' property is not defined, a generic required error message is displayed.

Dev Notes

  • requiredError defined as a thing allowing the error messages in multiple languages to be defined:
    ui:requiredError [ rdfs:label "Social Security Number (SSN) is required"@en ] ;

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.