Support » Theme: onetone » Adding multiple contact forms

  • As you can see using the link below, I have included a second form in the first section of the website which I would like to use as a quote form. At the moment the only details being emailed from the form are the name, email and message. I understand that this is because it is preset within the theme to only send them to my email. However now I have added my own form fields to the second quote form how do I, and what do I need to edit to make the form send all of the new fields answers to my email address.

    Alternatively, how do I make a contact form 7 plugin form, look like the form in your theme.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author MageeWP

    (@magictheme)

    In general, two contact will work by using codes below, you could change the sento email in the value of
    <input id="sendto" name="sendto" type="hidden" value="YOUR EMAIL HERE(Default Admin Email)" />

    <div class="contact-area"><form class="contact-form" action="" method="post"><input id="name" tabindex="1" name="name" size="22" type="text" value="" placeholder="Name" />
    <input id="email" tabindex="2" name="email" size="22" type="text" value="" placeholder="Email" />
    <textarea id="message" tabindex="4" cols="39" name="x-message" rows="7" placeholder="Message"></textarea>
    <input id="sendto" name="sendto" type="hidden" value="YOUR EMAIL HERE(Default Admin Email)" />
    <input id="submit" name="submit" type="button" value="Post" /></form></div>

    Hello,

    Thank you ever so much but when I send the quote form, as you can see on the page above, it appears it is referencing the original contact form. Is it a simple case of changing the id or something? Also as I tab through the form when I press tab it sometimes moves to the other contact form. The code above didn’t seem to fix this, could you please take a quick look at the site above and tell me what the code SHOULD be?

    Thank you for your time.

    Theme Author MageeWP

    (@magictheme)

    Try to change the second contact forms id to different one, like email-2, message-2 and so on.

    Hello I tried it but it still did not help, would you like me to post the code? It is below

    This is the code for the first contact form on the page (its a quote form)

    <p style="text-align: center; color: #666666;">Please enter your requirements in the form below for a free quote. We will always respond within 24 hours.</p>
    
    <div class="contact-area"><form class="contact-form" action="" method="post"><input id="name" tabindex="1" name="name" size="22" type="text" value="" placeholder="Name" />
    <input id="email1" tabindex="2" name="email" size="22" type="text" value="" placeholder="Email" />
    <input id="telephone1" tabindex="2" name="email" size="22" type="text" value="" placeholder="Telephone" />
    <input id="budget1" tabindex="2" name="budget" size="22" type="text" value="" placeholder="Budget" />
    <input id="location1" tabindex="2" name="budget" size="22" type="text" value="" placeholder="Location" />
    <input id="service1" tabindex="2" name="service" size="22" type="text" value="" placeholder="Service" />
    <textarea id="message1" tabindex="4" cols="39" name="x-message" rows="7" placeholder="More Info"></textarea>
    <input id="sendto" name="sendto" type="hidden" value="myemail@me.com" />
    <input id="submit" name="submit" type="button" value="Post" /></form></div>

    This is the code for the second contact form on the page, (its the themes original contact form)

    <p style="text-align: center; color: #666666;">Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere ced.
    Etiam ut dui eu nisi lobortis rhoncus ac quis nunc.</p>
    
    <div class="contact-area"><form class="contact-form" action="" method="post"><input id="name" tabindex="1" name="name" size="22" type="text" value="" placeholder="Name" />
    <input id="email" tabindex="2" name="email" size="22" type="text" value="" placeholder="Email" />
    <textarea id="message" tabindex="4" cols="39" name="x-message" rows="7" placeholder="Message"></textarea>
    <input id="sendto" name="sendto" type="hidden" value="myemail@me.com" />
    <input id="submit" name="submit" type="button" value="Post" /></form></div>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding multiple contact forms’ is closed to new replies.