We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Apologies if this seems like a stupid question, but I can’t easily figure out how to do this.

    I’ve got the basic feedback form working as per the documentation example files.

    Now I just want to add some extra fields for the user to fill in.

    IE: Company Name
    Website Address

    I’ve looked at the documentation and trawled thru this forum, but I just can’t see any easy to understand explanation of how to do this.

    Using modx 0.9.6.3
    eform 1.4.4.5

    Chunk

    [+validationmessage+]
    <form method="post" action="[~[*id*]~]">
        <input type="hidden" name="formid" value="feedbackForm" />
        
        <p><label accesskey="n" for="Name">Your Name</label>
        <input type="text" name="Name" maxlength="60" eform="Your Name::1:Expected at least two words:#REGEX /^\w+\s\w+/i" /></p>
    
        <p><label accesskey="e" for="email">Your Email Address</label>
        <input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
        
        <p><label accesskey="s" for="department">Subject</label>
        <select name="department">
            <option value="1">Free Asessment</option>
            
        </select></p>
        
        <p><label accesskey="c" for="comments">Comments</label>
        <textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p>
    
        <p>
        Please enter the     anti spam code below:<br />
        <img src="[+verimageurl+]" alt="verification code" border="1"/>
        </p>
        <p>
        <label accesskey="c" for="vericode">code</label>
        <input type="text" name="vericode" size="20" />
        </p>
        
        <p><input type="submit" name="submit" value="Send Feedback"></p>
    </form> 


    Call

    [!eForm? &formid=`feedbackForm` &to=`[email protected],[email protected],[email protected]` &tpl=`eFeedBackForm` &report=`'eFeedbackReport` &thankyou=`eFeedBackThanks` &mailselector=`department` &vericode=`1` &subject=`Web site feedback`!]


    Thanks in advance.

      Content Creator and Copywriter
      • 33337
      • 3,975 Posts
      Firstly, no question is a "stupid" question. smiley

      And for the other part, you will have to write some html markup for it. For example:
          <p><label accesskey="c" for="company">Company</label>
          <input type="text" name="company" eform="Company:string:1" /></p>
      

      Hope this makes sense.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 18367
        • 834 Posts
        OK, thanks

        but is that all I have to do?

        Do I just put that in the form chunk or do I have to add something else somewhere else?

        undecided
          Content Creator and Copywriter
          • 33337
          • 3,975 Posts
          This will go into your form chunk.
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 18367
            • 834 Posts
            Ah,

            so simple when you know how.

            Many thanks Zi.
              Content Creator and Copywriter