SolidOS / SolidOS/solid-ui

'requiredError' Common Field Property

Aperta
#138 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@timbl ci sta già lavorando.

Dal 16/12/2019.

enhancement
Lingua principale
TypeScript
Stelle
153
Fork
46
Merge medio
1g 8h
PR unite (30g)
7

Descrizione

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 ] ;

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.