Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an a ui:pattern property to basic fields so form creator can give their own regexp #564

Open
timbl opened this issue Oct 26, 2024 · 1 comment

Comments

@timbl
Copy link
Contributor

timbl commented Oct 26, 2024

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.

@timbl
Copy link
Contributor Author

timbl commented Oct 26, 2024

It seems ui:pattern is already in the ontology.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant