Source code

<ac:structured-macro ac:macro-id="737ba99d-bbf1-40ee-99c7-b30ca76bb9b2" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">f1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="64e7ee2f-dbb7-44bd-bfee-103a81ce86dc" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="497e7483-028a-4b05-ac19-842a3153d6d4" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">choice</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Your Choice</ac:parameter>
        <ac:parameter ac:name="values">false[1=fine by me. take whatever|2=own choice|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="7d2d0c5b-935c-4279-a309-8575f5ba5757" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">mychoiceta</ac:parameter>
        <ac:parameter ac:name="fieldLabel">My option</ac:parameter>
        <ac:parameter ac:name="type">textarea</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="5af818b2-a8c7-4e70-98e9-429f19c958e5" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">choice:2</ac:parameter>
        <ac:parameter ac:name="fieldName">mychoiceta</ac:parameter>
        <ac:parameter ac:name="action">Show field</ac:parameter>
        <ac:parameter ac:name="actionFieldName">choice</ac:parameter>
        <ac:parameter ac:name="withReverseRule">true</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="6c6e8ea4-1a50-42cf-8605-e4c8903c07d4" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">choice:2 AND mychoiceta:[empty]</ac:parameter>
        <ac:parameter ac:name="fieldName">Please type in your option into textarea field</ac:parameter>
        <ac:parameter ac:name="action">Validation rule</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>