Jump to content

Custom Field Validation


ryse

Recommended Posts

Hello.

I am new to Regular Expression Validation Strings, I am trying to implement a REQUIRED field whereby the client enters a FOUR DIGIT number so I can use it to verify it is them like with GoDaddy. I used the expression [0-9]{1-4} (My friend told me that) but it doesn't work and just comes up with "value is not valid".

I need an expression to validate that the value is an integer and is 4 digits in length.

 

Any help appreciated.

Thanks in advance!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated