Skip to content

Conversation

jnovinger
Copy link
Member

Fixes: #20498

The validation_regex field was not being enforced for URL type custom fields. This fix adds regex validation in two places:

  1. to_form_field() - Applies regex validator to form fields (UI validation)
  2. validate() - Applies regex check in model validation (API/programmatic)

The original issue reported UI validation only, but this fix also adds API validation for consistency with text field behavior and to ensure data integrity across all entry points.

The validation_regex field was not being enforced for URL type custom
fields. This fix adds regex validation in two places:

1. to_form_field() - Applies regex validator to form fields (UI validation)
2. validate() - Applies regex check in model validation (API/programmatic)

Note: The original issue reported UI validation only, but this fix also
adds API validation for consistency with text field behavior and to
ensure data integrity across all entry points.
@jnovinger jnovinger requested review from a team and bctiemann and removed request for a team October 20, 2025 00:06
@bctiemann bctiemann merged commit 0b97df0 into main Oct 20, 2025
10 checks passed
@jeremystretch jeremystretch deleted the 20498-url-custom-field-validation-regex branch October 20, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation Regex is not applied to URL Custom Fields

2 participants