Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to remove mandatory field in my Contact Us

    Hi,

    I need to know how to remove the mandatory field for "Company Name" in my URL: http://belletel.com/contact.php

    please advise...

    Thanks!

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,456
    Thanks
    8
    Thanked 1,084 Times in 1,075 Posts
    Put the part in red on this line (to "comment-out" the line so it won't get executed) ...

    // if (form.company_name.value.trim() == "")StrError += "<span class='red'>- '<strong>Company name</strong>' is mandatory.</span><br>";

    Then change this part (removing this: <span class="red">*</span> )

    <td>Company Name</td>
    <td>
    <label>
    <input type="text" name="company_name" tabindex="1" />
    </label>
    </td>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •