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

Variable RegEx validation for qualdrop submission form fields #9439

Open
bkeese opened this issue Mar 27, 2024 · 0 comments
Open

Variable RegEx validation for qualdrop submission form fields #9439

bkeese opened this issue Mar 27, 2024 · 0 comments
Labels
needs triage New issue needs triage and/or scheduling new feature

Comments

@bkeese
Copy link

bkeese commented Mar 27, 2024

Related to #8967

Current broken feature: A submission form field that uses "input-type" qualdrop_value and "regex" for validation should allow to select an item from the provided dropdown list and validate the second free text field against the regular expression.

New Feature: Additionally, the "regex" used for validation of the free-text field should be able to change according to which dropdown item is selected.

Use case: dc.identifier fields. If the user selects an identifier_type==DOI, the regex should validate for "https://doi.org/...", whereas if the user selects identifier_type==ISBN, the regex should validate for that format instead.

It would be convenient to make these validations on the front end. An alternative we are considering is to run scripts periodically that attempt to correct mal-formatted metadata.

@bkeese bkeese added needs triage New issue needs triage and/or scheduling new feature labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage New issue needs triage and/or scheduling new feature
Projects
Status: 🆕 Triage
Development

No branches or pull requests

1 participant