Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    7

    Custom field on Contact Form doesn't clear after form is submitted

    I edited page_contact_us.html to add a custom "phone field"

    Added the following code:
    Code:
        <tr>
                <td align="right" valign="top">Phone:</td>
                <td valign="top"><input type="text" name="contact[phone]" value="$save[phone]" style="width: 250px;" /></td>
            </tr>
    Also added this to the lang_eng.php file:
    Code:
    $lang['contact_us']['phone']        = 'Phone';
    The information sends and everything, however during testing, after I clicked "Send Message" all the contact fields cleared except for my phone field - the information I entered stayed in there. I want it to clear out just like the other fields do.

    What am I missing?

    Thanks!

  2. #2
    Join Date
    Aug 2006
    Location
    San Diego, CA
    Posts
    4,329
    There is code in the ajax class that clears the items after a successful submission. The fields need to be cleared in that file as well. We have added this to the next version so that it clears custom fields as well.
    Chris Talavera
    Turnkey Web Tools, Inc.
    chris{at}twt-inc.com
    1-800-673-4898

Similar Threads

  1. Contact Us form
    By forte in forum Suggestions & Feedback
    Replies: 10
    Last Post: 10-23-2014, 10:18 PM
  2. email field in contact form
    By BW001 in forum Customizations, Mods & Plugins
    Replies: 1
    Last Post: 04-11-2011, 04:36 PM
  3. Custom field for the contact form
    By alphastate in forum Troubleshooting and Problems
    Replies: 0
    Last Post: 09-20-2010, 04:38 AM
  4. Contact Us Form & Tell A friend Form are not working .
    By bhallash in forum Troubleshooting and Problems
    Replies: 1
    Last Post: 04-25-2010, 09:31 AM
  5. Contact Us Form
    By roosites in forum Troubleshooting and Problems
    Replies: 1
    Last Post: 11-20-2009, 11:02 AM

Bookmarks

Posting Permissions

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