Regex Validation for UPPERCASE combination of letters and or numbers without script and with Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 07:46 PM
Please I have the following requirements that I need help with.
1. I need some scripts for Regex Validation that only allows ALL CAPS combination of letters and or numbers in string fields. And if users do not meet the requirements and use lowercase letters or not adding numbers in the field value, they should not be allowed to submit the form.
2. Secondly, I need another way of solving the regex validation task without writing any script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 08:00 PM
Hi @Austine ,
You can configure RegEx for this string field and use this validation with string field.
If you are trying this on any catalog form then there is option to select this validation regex.
User this RegEx : ^[A-Z0-9]+$
Test the same @ https://regexr.com/
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 08:05 PM
@AshishKM thank you for your response. Yes, we want to use it on a Catalog Item form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 08:36 PM
Are you using here for any field.
Once you configure, you can use that REGEX here.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 09:01 AM
@AshishKM They wanted the field to also accept special characters such as:
!@#$%&*_-, space.
How do I accomplish this please? Thanks for your continuous support.