Required field option fix

pull/7/head
Ferry Boender 10 years ago
parent c1a029a996
commit 198386efeb
  1. 2
      src/scriptform.py

@ -853,7 +853,7 @@ class ScriptFormWebApp(WebAppHandler):
params['value'] = form_values.get(field['name'], '') params['value'] = form_values.get(field['name'], '')
if field['type'] not in ('radio', 'checkbox', 'select'): if field['type'] not in ('radio', 'checkbox', 'select'):
params['required'] = field.get('required', False), params['required'] = field.get('required', False)
if field['type'] in ('string'): if field['type'] in ('string'):
params['size'] = field.get('size', '') params['size'] = field.get('size', '')

Loading…
Cancel
Save