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

    How can i show a FormIT error inside a placeholder form tag? Is this possible?
    I´m using the below code, but the form just show me a message <span class=. Why?
    <label for="name">Name*</label>
    <input type="text" name="name" id="name" value="[[!+fi.name]]" placeholder="[[!+fi.error.name]]" />
      • 40045
      • 534 Posts
      I think because the standard error template of FormIt (param &errTpl=``) looks like

      <span class="error">[[+error]]</span>
      


      according to http://rtfm.modx.com/display/ADDON/FormIt, and because there's no HTML allowed in attributes you get that weired output, try to just set template like &errTpl=`[[+error]]` and see if it works.