{{ block content }}

If you've used raw HTML widgets (slider/checkbox), you may have noticed that they are wiped out on when the form is re-rendered to show errors. This page contains simple code to overcome that limitation.

To test, modify the form fields, then submit the page. (The form will fail validation until you set the slider to the correct value.)

0     10
{{ formfield_errors 'f_int' }}

Here are some checkboxes:



{{ next_button }} {# INSTRUCTIONS (1) make sure your _static/ folder contains persist-raw.js (2) copy the below 'script' tag into your template (2) add class="persist" to your raw HTML inputs #} {{ endblock }}