We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20485
    • 22 Posts
    Hi everybody,
    I’ve created a new form with a lot of fields and a capcha verification at the end. If the user writes a invalid code, all the filds becomes cleaned, and he must re-compiled all the fields. Is there any way to keep in memory the contents of the fields?

    Thanks in advance

      • 5689
      • 289 Posts
      It’s been a while since I set up a contact form with eForm, but here’s what I did, and it seems to work:

      ...
      <label for="cfName">Your Name
      	<p><input name="name" id="cfName" class="text" type="text" value="[+name+]" eform="Your Name::1:" /></p>
      </label> 
      <label for="cfEmail">Your Email Address
      	<p><input name="email" id="cfEmail" class="text" type="text" value="[+email+]" eform="Email Address:email:1" /></p>
      </label>
      ...
      


      Just put placeholders in the value="" for each input. I believe the placeholders are the same as the names of the inputs, so if you have name="city", then you need value="[+city+]"

      Hope that helps!
        I&#39;m learning more about MODx all the time and loving it.