diff --git a/sat/tools/xml_tools.py b/sat/tools/xml_tools.py index 69db3f5f..50ffd35f 100644 --- a/sat/tools/xml_tools.py +++ b/sat/tools/xml_tools.py @@ -259,6 +259,7 @@ def dataDict2dataForm(data_dict): - "xhtml" is used for "xml" fields with child in the C.NS_XHTML namespace - "options" are list of dict with optional "label" and mandatory "value" following suitable attributes from data_form.Option + - "required" is the same as data_form.Field.required """ # TODO: describe format fields = [] @@ -269,6 +270,7 @@ def dataDict2dataForm(data_dict): "var": field_data["name"], "label": field_data.get('label'), "value": field_data.get("value"), + "required": field_data.get("required") } if field_type == "xhtml": kwargs.update({