Vai al contenuto principale

BIN unvvC Documentation

  • Author:

  • 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:

     Modifica Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <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&#39;s no validation involved, as usual constraints must stay in schema, this is just a visualization configuration '/> 
    </complexType>
    
    <simpleType name='MyInput' type='xs:int'/>