Blog Sections Open
Keeping a Form Visible After Successful Submission in FormLister
Show the success message below a FormLister form without replacing the form itself after submit.
By default, FormLister often replaces the form with a success message after submission. That is fine for small contact forms, but not always what you want on quote pages, repeatable lead forms, or long forms where the user may need to submit again.
the original question here was straightforward: can the success message appear below the form without hiding the form itself? The answer is yes, but you need to separate the success state from the form template instead of letting the default replacement take over.
Practical options
- render the success message through
[+form.messages+]and keep the form visible - submit the form through AJAX and inject the success state into a separate block below the form
- redirect to the same page with a status flag if you want a fully clean reload
Simple template idea
<form method="post">
...fields...
<button type="submit">Send</button>
</form>
<div class="form-result">[+form.messages+]</div>
This looks like a small presentation choice, but it changes the user experience significantly. On lead pages and support pages it is often better to keep the form visible so the person can submit another request, correct details, or keep the page context after success.
Splitting a Large Sitemap into Multiple XML Files
How to generate a sitemap index and split large XML sitemaps into multiple files in Evolution CMS using a snippet, a route document, and an OnPageNotFound plugin.
Preserving Checkbox Values in FormLister After Validation Errors
Keep FormLister checkbox selections intact when a form is re-rendered after validation errors.