The submit context classes are an easy way to replace a form with a 'thank you' text after the user has succesfully submitted it. They are automatically enabled for any form which is implemented using the WebHare forms handler.

Set up the DOM in the following way to use it:

  <div class="wh-form--submitcontext">
    ...
      <div class="wh-form--showbeforesubmit">
        <form>...</form>
      </div>
      <div class="wh-form--showaftersubmit">
        Thank you!
      </div>
    ...
  </div>

Please note that the contents of the 'thank you' page are already available in the HTML DOM before the user has actually submitted the form and should not contain any information that shouldn't be available before a succesful form submission.

PreviousNext

Comments