Skip to main content

BIN 549AK Documentation

  • Author:

  • Version: 19

  • Description: Options Control - Open Answer with Union and custom label for the open question, defined with [optionsctrl.ftxlabel] - In this example the user can type an open answer, the type is an union - Tygn1 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 - Open Answer with Union and custom label for the open question, defined with [optionsctrl.ftxlabel] - In this example the user can type an open answer, the type is an union - bin:Tygn1 bin:wyVHz'>
        <field name='ChooseOrTypeOneColor' type='MyUnion' extra:form.control='options' extra:optionsctrl.freetext='true'
    extra:optionsctrl.ftxlabel='Type a color' ></field>
        <field name='ChooseOrTypeOneColorVertical' type='MyUnion' extra:form.control='options' extra:optionsctrl.freetext='true'
    extra:optionsctrl.ftxlabel='Type a color' extra:form.explanation='this has css in the css tab'></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>