BIN unvvC Documentation
Author: Michele Vivoda
Version: 69
Description: Examples from "Common Particles Configuration" section of the form reference: form.mustvalue - an optional field is *displayed* as required when form.mustvalue=true
Created: 2014-09-05
Modified: 2014-09-08
Source:
Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML<complexType name='Form' description='Examples from "Common Particles Configuration" section of the form reference: form.mustvalue - an optional field is *displayed* as required when form.mustvalue=true ' extra:xform.cont.html5='false'> <field name='FieldRequired' type='MyInput' extra:form.explanation='Required field that when HTML5 is enabled does not admit the empty string'/> <field name='FieldRequiredMustValueFalse' type='MyInput' extra:form.mustvalue='false' /> <field name='FieldRequiredFormEmptyTrue' type='MyInput' extra:form.empty='true' extra:form.explanation='This input is required but accepts the empty string, also when using html5'/> <field name='FieldOptional' type='MyInput' minOccurs='0' extra:ctrl.emptyisnull='true' extra:form.maybenull='true' extra:form.explanation='This control binds the empty input to an absent value'/> <field name='FieldOptionalMustValue' type='MyInput' minOccurs='0' extra:form.maybenull='true' extra:form.mustvalue='true' /> <field name='FieldOptionalFormEmptyFalse' type='MyInput' minOccurs='0' extra:form.maybenull='true' extra:form.empty='false' /> <field name='FieldOptionalFormRequiredTrue' type='MyInput' minOccurs='0' extra:form.maybenull='true' extra:form.required='true' /> <field name='FieldOptionalFormEmptyFalseReqTrue' type='MyInput' minOccurs='0' extra:form.maybenull='true' extra:form.empty='false' extra:form.required='true'/> <field name='FieldMustValueNoHtml5' type='MyInput' minOccurs='0' extra:form.maybenull='true' extra:ctrl.emptyisnull='true' extra:form.mustvalue='true' extra:html5='false' extra:form.explanation='Also if is displayed as required this field can be submitted without value since html5 [required] is not used...there's no validation involved, as usual constraints must stay in schema, this is just a visualization configuration '/> </complexType> <simpleType name='MyInput' type='xs:int'/>
application/xml //efbin.org/osk/unvvC //efbin.org/bin/unvvC Eleusoft ARIA