diff --git a/forms.py b/forms.py index 38eb4b8..264ac21 100644 --- a/forms.py +++ b/forms.py @@ -6,6 +6,7 @@ import subprocess import json from difflib import unified_diff +from pyxform.question_type_dictionary import QUESTION_TYPE_DICT as QTYPES templates = resource_filename('wq.start', 'master_templates') @@ -164,6 +165,8 @@ def process_fields(fields): if field['type'] == 'repeat': field['wq:many'] = True process_fields(field['children']) + elif field['type'] in QTYPES: + field['type_info'] = QTYPES[field['type']] else: field['type_info'] = {'bind': {'type': field['type']}}