Prefill form fields if it had errors.

pull/7/head
Ferry Boender 10 years ago
parent e623c45da6
commit 479aac0e5a
  1. 3
      src/scriptform.py

@ -999,7 +999,8 @@ class ScriptFormWebApp(WebAppHandler):
self.wfile.write(output.encode('utf8')) self.wfile.write(output.encode('utf8'))
else: else:
# Form had errors # Form had errors
self.h_form(form_name, form_errors) form_values.pop('form_name')
self.h_form(form_name, form_errors, **form_values)
# Clean up uploaded files # Clean up uploaded files
for file_name in tmp_files: for file_name in tmp_files:

Loading…
Cancel
Save