Hello,
I have a custom field called Digit in create screen. Requirement is to check if field is having only 10 digits in it. For that I have used Regular Expression Check (JSU).
But it is also checking the validations when field is empty. I need that when field is empty nothing to be checked and when it has value need to check if its having only 10 digits or not.
Isn't the regex extended, in a sense you could do
^([0-9]{10}|)$
Where the | pipe serves as "or". I haven't tested above but I remember I set up a couple of those before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.