WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
custom validation (1 post)

  1. Francesco
    Member
    Posted 1 year ago #

    Hi,

    I want to use this javascript to validate a field:

    var i=new RegExp("([a-zA-Z0-9]{16}$)");
    
    if(!i.test(frm.code.value)) {
    alert("Your code field is empty or it contains non admitted chars");
    return false;
    }

    I put this code in the additional settings but it doesn't work, where am I wrong?

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic