Skip to main content

BIN 40xKc Documentation

  • Author:

  • Version: 11

  • Description: Defaults in form with form.default - note: form.skip cannot be used on required field

  • Created: 2015-05-03

  • Modified: 2015-05-21

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Defaults in form with form.default - note: form.skip cannot be used  on required field'   extra:form.cont.html5='false'  >
    	<field name='Def' extra:form.default='World' type='xs:string' />
    	<!--<field name='DefSkip' extra:form.skip='true' extra:form.default='World' type='xs:string' />-->
    	<field name='DefEmptyIsNull' extra:ctrl.emptyisnull='true' extra:form.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' extra:form.default='World' type='xs:string' />
    	<field name='DefOptSkip' extra:form.skip='true'  minOccurs='0' extra:form.default='World' type='xs:string' />
    	<field name='DefOptMayBeNull' extra:form.maybenull='true' minOccurs='0' extra:form.default='World' type='xs:string' />
    	<field name='DefOptMayBeNullEmptyIsNull' extra:ctrl.emptyisnull='true' extra:form.maybenull='true' minOccurs='0' extra:form.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>