Validator

Home Forums Quform WordPress Validator

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7226
    lawrencepepper
    Participant

    I could use some help on a validator: I need a field validated to match a certain pattern.

    Whatever is entered it needs to begin with SC and then have five digits after it.

    So the field would be required to be SCXXXXX where the x’s are numbers.

    Can any body point me in the right direction.

    Thanks

    L

    #7232
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #7236
    lawrencepepper
    Participant

    Thanks!

    Another question, is it possible to do two regex validators.

    I have a similar field that needs to be either 4 or 5 numbers.

    So when they enter the number it needs to be either 4 numbers or five. That is all.

    L

    #7240
    lawrencepepper
    Participant

    Ok,

    I figured this out, I amusing the digit validator along with the length validator to accomplish this.

    Thanks again!

    L

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy