Vai al contenuto principale

BIN QLXrZ Documentation

  • Author:

  • Version: 36

  • Description: Defaults in form - note that only fields with form.skip get default when submitted with no value (empty input that becomes null, as in [DefOptMayBeNullEmptyIsNull])

  • Created: 2015-05-03

  • Modified: 2015-05-21

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Defaults in form - note that only fields with form.skip get default when submitted with no value (empty input that becomes null, as in [DefOptMayBeNullEmptyIsNull])'   extra:form.cont.html5='false' >
    	<field name='Def' default='World' type='xs:string' />
    	<field name='DefSkip' extra:form.skip='true' default='World' type='xs:string' />
    	<field name='DefEmptyIsNull' extra:ctrl.emptyisnull='true' default='World' type='xs:string'  extra:form.explanation='this cannot be submitted empty, raises error and shows again with default filled'/>
    	<field name='DefOpt' minOccurs='0' default='World' type='xs:string' />
    	<field name='DefOptSkip' extra:form.skip='true'  minOccurs='0' default='World' type='xs:string' />
    	<field name='DefOptMayBeNull' extra:form.maybenull='true' minOccurs='0' default='World' type='xs:string' />
    	<field name='DefOptMayBeNullEmptyIsNull' extra:ctrl.emptyisnull='true' extra:form.maybenull='true' minOccurs='0' default='World' type='xs:string'  extra:form.explanation='here the default is not set if the input is empty so value is null'/>
    	<field name='DefOptEmptyIsNull' extra:ctrl.emptyisnull='true' minOccurs='0' default='World' type='xs:string'  extra:form.explanation='here an empty value causes the input to be removed on submission, no value in result'/>
    </complexType>