We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32347
    • 143 Posts
    Hello,

    I am trying tochange the contact form adding a new input for a phone number. I am using 1.02 version of modx with the eform 1.4.4.6. I have changed the ContactForm, but the changes I made is not working.
    This is the code:

    <p class="error">[+validationmessage+]</p>

    <form method="post" action="[~[*id*]~]" id="EmailForm" name="EmailForm">

    <fieldset>
    <h3> Contact Bugman 1 Pest and Termite Services</h3>

    <input name="formid" type="hidden" value="ContactForm" />

    <label for="cfName">Your name:
    <input name="name" id="cfName" class="text" type="text" eform="Your Name::1:" /> </label>

    <label for="cfPhoneNumber">Phone Number:
    <input name="phone" id="cfPhoneNumber" class="text" type="text" eform="Phone Number::1:" /> </label>


    <label for="cfEmail">Your Email Address:
    <input name="email" id="cfEmail" class="text" type="text" eform="Email Address:email:1" /> </label>

    <label for="cfRegarding">Regarding:</label>
    <select name="subject" id="cfRegarding" eform="Form Subject::1">
    <option value="General Inquiries">General Inquiries</option>
    <option value="Pest Control">Request Information on Pest Control Services</option>
    <option value="Termite Control">Request Information on Termite Control Services</option>
    </select>

    <label for="cfMessage">Message:
    <textarea name="message" id="cfMessage" rows="4" cols="20" eform="Message:textarea:1"></textarea>
    </label>

    <label>&nbsp;</label><input type="submit" name="contact" id="cfContact" class="button" value="Send This Message" />

    </fieldset>

    </form>

    Thank You
    Jeff
      • 32347
      • 143 Posts
      I figured it out. You have to go to the "ContactFormReport" and add the field you want.
      I added the phone number field.

      <p>This is a response sent by <b>[+name+]</b> using the feedback form on the website. The details of the message follow below:</p>


      <p>Name: [+name+]</p>
      <p>Phone Number: [+phone+]</p>
      <p>Email: [+email+]</p>
      <p>Regarding: [+subject+]</p>
      <p>comments:
      [+message+]</p>

      <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE: [+subject+]">[+email+]</a></p>