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

    I was wondering how I go about using veriword and/or captcha in an eForm template.

    Any help would be great.

    Cheers,

    Sarah smiley
      • 26182
      • 164 Posts
      Hey,

      Managed to resolve this. Tried to remove the message but it’s not possible.

      Cheers,

      Sarah
        • 25663 MODX Staff
        • 12,272 Posts
        Hi sarah,

        I know it may be a bit pedantic, but if you could post how it was done I’m sure it’d help lots of other folks. Thanks! smiley
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 26182
          • 164 Posts
          Yeah sure. Sorry didn’t realise I’d had a response.

          This is the code for the chunk I used for the template parameter when I make the snippet call for eForm:

          <p>To send your CV to Brisbane Recruitment please fill out the details below and attach your CV.</p>
          <p><span style="color:#900;">[+validationmessage+]</span></p>
          <form method="post" enctype="multipart/form-data" action="[~[*id*]~]">
              <input type="hidden" name="formid" value="feedbackForm" />
              <p><label accesskey="n" for="Name">Your Name:</label><br />
              <input type="text" name="Name" maxlength="60" eform="Your Name::1" /></p>
          
              <p><label accesskey="e" for="email">Your Email Address:</label><br />
              <input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
              
              <p><label accesskey="c" for="comments">Comments:</label><br />
              <textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p>
          
               <p><label for="attachment">CV attachment</label>
                  <input class="field" type="file" name="attachment" eform="Attachment:file:0:Only upload of text documents are supported:#LIST pdf,txt,doc " /></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>
          
          <input type="submit" name="frmGo" value="Send CV" />
          </form>