Avoid hypen on validation

Home Forums Jquery Validation for Contact Form 7 Avoid hypen on validation

This topic contains 2 replies, has 2 voices, and was last updated by  Dinesh 6 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6370

    kumaresan

    In above website i am using contact form 7 and for validation using Jquery Validation for Contact Form 7 plugin.

    I added custom javascript to display telephone number xxx-xxx-xxxx.

    I am using validation method= ‘class:number’ for telephone number field validation.

    Now,when i enter the number in the field, error will be displayed ‘please enter number only’. Because validation take hypen(-) also one of the character.(Hypen will be auto generate by code)

    Is, there any possible to avoid that.That means character not accept in that field and avoid hypen on validation(that means accept hypen)

    #6371

    kumaresan

    website URL

    Referrals

    #6377

    Dinesh
    Keymaster

    Hi,

    Any chance you can try using USPhone for validation ?

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Avoid hypen on validation’ is closed to new replies.