Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default How to add fields in the contact us page?

    The default fields in contact us page are full name, address and message. How to add more fields in the contact us page?

  2. #2
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: How to add fields in the contact us page?

    You will need to make changes using the override system.

    The file that you will need to modify is

    includes/template/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: How to add fields in the contact us page?

    Quote Originally Posted by shocker View Post
    You will need to make changes using the override system.

    The file that you will need to modify is

    includes/template/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
    not enough, need to add more codes in includes/modules/pages/contact_us/header_php.php to handle new fields as well.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    Default Re: How to add fields in the contact us page?

    Thanks yellow1912

    How do you get the new fields added the the email that's sent. It got it to display.

    As a test I tried the following code:

    includes/modules/pages/contact_us/header_php.php
    Code:
        $html_msg['NEW_FIELD1'] = strip_tags($_POST['new_field1']);
    includes/template/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
    Code:
    <label class="inputLabel" for="new-field1"><?php echo ENTRY_NEW_FIELD1; ?></label>
    <?php echo zen_draw_input_field('new-field1', ($error ? $_POST['new-field1'] : $email), ' size="40" id="new-field1"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
    <br class="clearBoth" />

 

 

Similar Threads

  1. v151 How do I add the phone number to the contact us page? Thank you.
    By MagicMan in forum General Questions
    Replies: 3
    Last Post: 21 Jan 2016, 10:47 PM
  2. Replies: 2
    Last Post: 20 Jul 2010, 02:50 AM
  3. How do I add new form fields on the registration page?
    By RawKarat in forum General Questions
    Replies: 1
    Last Post: 13 Dec 2009, 10:49 PM
  4. how to add multiple fields to contact us page
    By sammybotz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Nov 2009, 04:46 PM
  5. How do I add more boxes to the form in the contact page?
    By whiteblazer01 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Mar 2009, 07:59 PM

Posting Permissions

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