Add field to notification email

Home Forums Quform PHP Add field to notification email

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25385
    markf
    Participant

    I have used the Quform to process an existing html contact page. It is working correctly.
    The notification email that I recieved when the form is submitted contains 3 of th e4 form fields that I would like to have.

    Message
    email address
    subject

    I have a field for Full Name. I would like to have that included but can’t seem to add the php code to the notification.php file correctly.

    Here is the form html:

    <form action=”quform/process.php” method=”post” class=”vanilla-form quform”>
    <div class=”quform-elements”>
    <h4>Please fill in all fields.</h4>
    <p>
    <label for=”name”>Your Name:</label>
    <div class=”quform-input”>
    <input id=”name” name=”Name” placeholder=”Your Full Name” type=”text”>
    </div>
    </p>
    <p>
    <label for=”email”>Your Email:</label>
    <div class=”quform-input”>
    <input id=”email” name=”email” placeholder=”Valid Email Address” type=”email”>
    </div>
    </p>
    <p>
    <label for=”message”>Message:</label>
    <div class=”quform-input”>
    <textarea id=”message” name=”message” placeholder=”Your Message to Us” rows=”10″></textarea>
    </div>
    </p>
    <p>
    <label for=”subject”>Subject:</label>
    <div class=”quform-input”>
    <input id=”subject” name=”subject” placeholder=”Your Subject” type=”text”>
    </div>
    </p>
    </div>

    I am trying to add this line from the support docs to notification.php:
    <?php echo $form->getValueHtml(‘Name’); ?>

    I must be adding it in the wrong place or some other configuration error on my part. Can anyone show me where and how I might add that code to notification.php so when I get the notification email it contains the value entere into the Name field? TIA for any help.

    #25452
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    • This reply was modified 6 years, 6 months ago by Ally.
    • This reply was modified 6 years, 6 months ago by Ally.
    #25476
    markf
    Participant

    That worked! Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy