We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39587
    • 59 Posts
    I am using Formit on my website and it generally works well. However when the client makes a validation error all the message is lost and a new page loads after pressing the submit button.

    It the a way to keep the messsage in the text box and just display the error so that the client does not have to type the whole message again.

    Cheers
      • 4172
      • 5,888 Posts
      see this example:
      http://rtfm.modx.com/display/ADDON/FormIt.Examples.Simple+Contact+Page

      you should get the message back into the textarea with the placeholder
      [[!+fi.text]]

      in
          <label for="text">
              Message:
              <span class="error">[[!+fi.error.text]]</span>
          </label>
          <textarea name="text" id="text" cols="55" rows="7" value="[[!+fi.text]]">[[!+fi.text]]</textarea>
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!