Plugin not working?

Home Forums Jquery Validation for Contact Form 7 Plugin not working?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6750
    Robbie C
    Guest

    Hi, got the pro version and have been trying to use the plugin but having no success. Test page is: http://statistica.io/robbie-test/

    While I have been trying several different features, the one that is most basic is the phone field. I have tried to put a length requirement on there:

    <label> Phone (required)
    [tel* class:JVrangelength-5-9 busPhone] </label>

    But when I test out the form it accepts single digit entries.

    Also, I am not sure that the plugin validation messages appear. It seems like only the CF7 ones do.

    #6751
    Robbie C
    Guest

    Apologies, please ignore the last sentence. I verified it is the plugin warnings that appear.

    #6752
    Dinesh
    Keymaster

    Hi Robbie,

    For US phone number class should be phoneUS but seems like you are using other class there. Can you please change and see if this works ?

    Thanks

    #6756
    Robbie C
    Guest

    I tried your change:

    <label> Phone (required)
    [tel* class:phoneUS busPhone] </label>

    It still allowed me to enter a single digit into the box.

    Additionally, the reason I was trying to do a minimum and maximum length is that the form is filled out by users all over the world. The phone field isnt just 9 digits long when including country codes.

    #6757
    Robbie C
    Guest

    UPDATE – I knew I was doing something wrong!

    It appears you have to add the class function AFTER you provide the name of the field. Which makes sense, I just didn’t know there were rules.

    When I changed it to:
    <label> Phone (required)
    [tel* busPhone class:JVrangelength-5-9] </label>

    It worked perfect!

    #6759
    Dinesh
    Keymaster

    Hi Robbie,

    Glad you sorted it out. I didn’t noticed that before.

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Plugin not working?’ is closed to new replies.