SolidOS / SolidOS/solid-ui

'requiredError' Common Field Property

Open
#138 3 comments 0 reactions 1 assignee View on GitHub

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.