Add an a ui:pattern property to basic fields so form creator can give their own regexp
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 153
- Forks
- 46
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 7
Description
The form field code already has the ability to color user inout depending on whther it matches a regexp, and block filed submission for a bad user string. The patterns curently come from the form system internally for numbers, decimals, etc. This poposes addiing a property ui:pattern so the form designer can specify them.
This would be useful, for example, when prompting for things like Matrix or Blu Sky user IDs.
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.
Research direction
Start by locating the form field code that applies internal regular-expression patterns for numbers and decimals, then trace how field properties are read. Add support for the ui:pattern property so form designers can provide a custom regexp, and verify that matching controls both user feedback and submission blocking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100