Posted By

brianyang on 06/26/10


Tagged

modx Revolution


Versions (?)

Creating Forms with eForm - eFeedBackForm.tpl


 / Published in: HTML
 

this is the tpl to use with the eForm recipe

  1. [+validationmessage+]
  2. <form method="post" action="[~[*id*]~]">
  3. <input type="hidden" name="formid" value="feedbackForm" />
  4.  
  5. <p><label accesskey="n" for="Name">Your Name</label>
  6. <input type="text" name="Name" maxlength="60" eform="Your Name::1:Expected at least two words:#REGEX /^\w+\s\w+/i" /></p>
  7.  
  8. <p><label accesskey="e" for="email">Your Email Address</label>
  9. <input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
  10.  
  11. <p><label accesskey="s" for="department">Subject</label>
  12. <select name="department">
  13. <option value="1">Website feedback</option>
  14. <option value="2">Support request</option>
  15. <option value="3">Feature request</option>
  16. </select></p>
  17.  
  18. <p><label accesskey="c" for="comments">Comments</label>
  19. <textarea cols="40" rows="10" name="comments" eform="Comments:html:1"></textarea></p>
  20.  
  21. <p>
  22. Please enter the anti spam code below:<br />
  23. <img src="[+verimageurl+]" alt="verification code" border="1"/>
  24. </p>
  25. <p>
  26. <label accesskey="c" for="vericode">code</label>
  27. <input type="text" name="vericode" size="20" />
  28. </p>
  29.  
  30. <p><input type="submit" name="submit" value="Send Feedback"></p>
  31. </form>

Report this snippet  

You need to login to post a comment.