Forums

Visual Form Builder
Phone number validation (2 posts)

  1. chzsoona
    Member
    Posted 4 months ago #

    Hi everyone,
    First of all I really like that plug-in! It's fantastic.
    Secondly, I'm having some problems with phone number validation like “US format”. I want the validation with this format like “555-666-5656”. User shouldn’t be able to enter more digits in the phone field. Like 10 digits for phone number and 2 dashes. I want minimum and maximum 12 digits.
    Right now the current phone validation accepts different formats. Like (2223334444, 222-333-4444, 222-333-444455566-4567 or 88888888888888888888888888) means that user can enter any number(s) in phone field. . I want to control the end user to enter the specific 12 digits phone format like “555-666-5656”.
    Can anyone help me to solve this issue, I will appreciate that.
    Thanks

    http://wordpress.org/extend/plugins/visual-form-builder/

  2. Matthew Muro
    Member
    Posted 4 months ago #

    As the default validation message states, most phone formats are accepted. This was chosen in favor of a more restrictive and less internationally compatible formatting.

    If you desire a more restrictive validation, I suggest creating a new JS file and adding your own jQuery Validation rules.

Reply

You must log in to post.

About this Plugin

About this Topic