Event Registration URL Slug field doesn't allow uppercase letters #4940
Labels
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Type: Enhancement
Feature requests.
x-Fixed in v13.4
Milestone
Prerequisites
A Picture Is worth a Thousand Words
Description
When adding a URL Slug to an event registration instance, the validation on the field doesn't allow uppercase letters. I believe all that would be needed to fix this is to adjust the regular expression in the following two files to include uppercase letters. This occurs in both the Event Registration Wizard block and the Registration Instance Linkage Detail block. The validation error message implies that there are special characters present, but it is actually failing on the uppercase letter.
Changing from
ValidationExpression="^[a-z0-9]+(?:-[a-z0-9]+)*$" />
toValidationExpression="^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" />
would allow uppercase letters.Rock/RockWeb/Blocks/Event/RegistrationInstanceLinkageDetail.ascx
Line 54 in 9364f83
Rock/RockWeb/Blocks/Event/EventRegistrationWizard.ascx
Line 254 in 9364f83
Steps to Reproduce
Expected behavior:
The Url Slug field would accept the slug with uppercase letters in it.
Actual behavior:
An entered Url Slug with an uppercase letter and no special characters fails validation.
Versions
The text was updated successfully, but these errors were encountered: