Skip to content

Issue #801: Added regex pattern to Name & UniqueName fields and custo…#822

Draft
ahungerford-unicon wants to merge 1 commit intomainfrom
issue/801
Draft

Issue #801: Added regex pattern to Name & UniqueName fields and custo…#822
ahungerford-unicon wants to merge 1 commit intomainfrom
issue/801

Conversation

@ahungerford-unicon
Copy link
Contributor

@ahungerford-unicon ahungerford-unicon commented Jan 30, 2026

…m error checking for those fields

Edit: Changed it to a Draft as this requires #810 to be completed first.

Comment on lines +96 to +99
// # Disabled pattern validation here; now handled on handleCreateOrEdit
// if (field.pattern && createParams[field.name] && !new RegExp(field.pattern).test(createParams[field.name])) {
// setCreateError(`The following fields have invalid values:\n > ${field.patternErr}`);
// }
Copy link
Contributor Author

@ahungerford-unicon ahungerford-unicon Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left this in but commented as I originally had this checking as the field was edited, but wasn't really satisfied with the result since it would replace any onSave reported errors as soon as you started to correct one of them. I believe we could get inline checking done without this if we updated the Dialog to an actual form, since that is how the pattern attribute usually works, but my quick tests with it caused other issues to crop up for Dialog that didn't make it worth it.

@ahungerford-unicon ahungerford-unicon marked this pull request as draft January 30, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant