Skip to main content

BIN OlbpT Documentation

  • Author:

  • Version: 1

  • Description: Examples from "Form Optional / Required" section of the form reference: revised with schema [minLength] constraint - if the field simple type does not admit the "empty string" use ctrl.emptyisnull=false and form.empty=false, try to change to true to se...

  • Created: 2014-10-05

  • Modified: 2014-10-05

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Examples from "Form Optional / Required" section of the form reference: revised with schema [minLength] constraint - if the field simple type does not admit the "empty string" use ctrl.emptyisnull=false and form.empty=false, try to change to true to see the empty string as an accepted value '>
    	
    	<field name='FieldStringOptional' minOccurs='0' type='xs:string' extra:form.explanation='Standard optional field with maybenull=true and extra:ctrl.emptyisnull=false, value space admits the empty string so we must use form.empty=false to make form field invalid when empty' extra:form.empty='false' extra:form.maybenull='true' extra:ctrl.emptyisnull='false'>
    <facet name='minLength' value='1'/>
    </field>
    
    </complexType>