Skip to main content

BIN j5GFC Documentation

  • Author:

  • Version: 21

  • Description: Smart default [cc.smartdefault] example with CSS, bNd3z NNg84 - a smart default form prints first the required fields and the optional with value (in layout order) and then the optional without value (in layout order)

  • Created: 2019-12-26

  • Modified: 2019-12-26

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Smart default [cc.smartdefault] example with CSS, bin:bNd3z  bin:NNg84 - a smart default form prints first the required fields and the optional with value (in layout order) and then the optional without value  (in layout order)' extra:cc.smartdefault='true'  extra:form.smartdefault='true' >
        <field name='Name' type='xs:string' minOccurs='0'/>
        <field name='BirthDate' type='xs:date' minOccurs='0'/>
       <field name='FakeRequired' type='xs:date' minOccurs='0' extra:form.required='true' extra:form.maybenull='true' extra:ctrl.emptyisnull='true' />
        <field name='DT' type='xs:dateTime' minOccurs='1'/>
        <field name='Address' 
    	minOccurs='0'  
    	type='AddressType'/>
        <field name='OtherDate' type='xs:date' minOccurs='0'/>
    </complexType>
    <complexType name='AddressType'>
        <field name='Street' type='xs:string'/>
        <field name='City' type='xs:string' default='Amsterdam' />
    </complexType>