WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Validation for text only in Contact form7 (5 posts)

  1. AJ_Joel
    Member
    Posted 1 year ago #

    Quite satisfied with the Contact form7 plugin.

    Just a query about the validation of this plugin.

    Is it possible to validate the text field for letters only? How can I achieve it?

    Please Guide me...

    http://wordpress.org/extend/plugins/contact-form-7/

  2. donrhummy
    Member
    Posted 1 year ago #

  3. AJ_Joel
    Member
    Posted 1 year ago #

    Hi Donrhummy,

    Thanks for the suggestion, but the exact problem now is, I am using a wp plugin called as Jquery Validation for Contact form 7, now this plugin helps me to validate the phone fields as well as other fields just by installing the plugin, but the plugin doesn't have a code to validate a name field for characters only. Since I am using this plugin, the code in this link http://blogs.lizardwebs.net/2012/03/a-solution-for-contact-form-7-phone-field/ wont work even after altering.

    Do suggest me if any other options are available for the same...

  4. donrhummy
    Member
    Posted 1 year ago #

    AJ_Joel,
    You can use both. Simply add a filter for the one I posted (it explains how in the article) and it'll call both that and your jquery one. BTW, there is one error in the article: it needs to return the result (see the comments in that article).

  5. AJ_Joel
    Member
    Posted 1 year ago #

    Hi donrhummy,

    Did all the things as per the article, added filters in the theme's function.php file. Also corrected the error of returning the result at the end, but due to some conflicts with the Jquery validation plugin this function won't trigger, when I deactivate the validation plugin this function works fine so there are some conflicts happening which I am unable to resolve.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic