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

    Hello,

    Currently the contact form displays 3 fields, all of which are required. How do I remove the required field setting for the Message field. Message is not required only name and email.

    Cheers,

    Jason

    #37122

    This requires two edits. First open send.php and remove the following code

    if($the_message == "")

    {

    $errorC = true;

    $the_messageclass = "error";

    }else{

    $the_messageclass = "valid";

    }

    Next open js/custom.js and find this code around line 215:

    if(check_for == "name" || check_for == "message"){

    Change it to

    if(check_for == "name"){

    #37123

    Excellent,

    Thank you

    Jason

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

The topic ‘Contact Form required field’ is closed to new replies.