Skip to main content

BIN Sc1fq Documentation

  • Author:

  • Version: 5

  • Description: Options Control - Simple With Open Answer with Union - In this example the user can type an open answer, the type is an union wyVHz

  • Created: 2014-10-14

  • Modified: 2024-12-01

  • Source:

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

    Printers Embed Responsive

    <complexType name='Form' description='Options Control - Simple With Open Answer with Union - In this example the user can type an open answer, the type is an union bin:wyVHz'>
        <field name='ChooseOrTypeOneColor' type='MyUnion' extra:form.control='options' extra:optionsctrl.freetext='true'></field>
    </complexType>
    <simpleType name='MyUnion' unionTypes='xs:string ColorEnum'/>
    <simpleType name='ColorEnum' type='xs:string'>
        <facet name='enumeration' value='Red'/>
        <facet name='enumeration' value='Green'/>
        <facet name='enumeration' value='Blue'/>
        <facet name='enumeration' value='Yellow'/>
    </simpleType>