Skip to main content

BIN NfJ5i Documentation

  • Author:

  • Version: 10

  • Description: Examples from "Form Optional / Required" section of the form reference: convert empty string value to {absent} with ctrl.emptyisnull=true BUT admit whitespace only using form.empty.trim=false

  • 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: convert empty string value to {absent} with ctrl.emptyisnull=true BUT admit whitespace only using form.empty.trim=false '>
    	
    	<field name='FieldStringOptionalEmptyIsNull' minOccurs='0' type='xs:string' extra:form.explanation='Optional string field with ctrl.emptyisnull=true can submit whitespace only value that is not converted to the {absent} (null) value because of [extra:form.empty.trim=false]. Whitespace is not collapsed. ' extra:form.maybenull='true' extra:ctrl.emptyisnull='true' extra:form.empty.trim='false'/>
    	<field name='FieldStringRequiredEmptyIsNull' minOccurs='1' type='xs:string' extra:form.explanation='Required string field with ctrl.emptyisnull=true can submit  whitespace only value that is not converted to the {absent} (null) value because of [extra:form.empty.trim=false]. Whitespace is not collapsed' extra:form.maybenull='true' extra:ctrl.emptyisnull='true' extra:form.empty.trim='false'/>
    	<field name='FieldStringRequiredEmptyIsNullNoHtml5' minOccurs='1' type='xs:string' extra:form.explanation='Use this no html5 version to check that empty string becomes absent - Required string field with ctrl.emptyisnull=true can submit  whitespace only value that is not converted to the {absent} (null) value because of [extra:form.empty.trim=false]. Whitespace is not collapsed' extra:form.maybenull='true' extra:ctrl.emptyisnull='true' extra:form.empty.trim='false' extra:html5='false'/>
    
    </complexType>