Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
ConfiForms Form Definition
formNamemyform
trueINLINE


selselfalse[1=one|2=two|3=three|]radio_group

infoDetailsinfopanel


-- hide if sel is not selected (no option)

sel:[empty]infoHide fieldseltrue


sel:1trueinfo=Value 1 was selectedSet valuesel

sel:2trueinfo=Value 2 was selectedSet valuesel

sel:3trueinfo=Value 3 was selected. It is the biggest possible!Set valuesel


Code for the demo

Code Block
<ac:structured-macro ac:macro-id="6fa56e65-f6fd-4268-876f-5dfeaf02fe31" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">myform1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="c2acce10-0012-46ee-8fd0-d84604a22f30" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="6901a2e9-4479-40e7-9fab-97cfd6cf62e5" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">sel</ac:parameter>
        <ac:parameter ac:name="fieldLabel">sel</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|]</ac:parameter>
        <ac:parameter ac:name="type">radio_group</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="63da7dc3-8022-426a-b400-dd8a40160e38" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">info</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Details</ac:parameter>
        <ac:parameter ac:name="type">infopanel</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <br/>
    </p>
    <p>-- hide if sel is not selected (no option)</p>
    <p>
      <ac:structured-macro ac:macro-id="744b4bd6-66cc-4ed7-b298-cbe68f4fff87" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">sel:[empty]</ac:parameter>
        <ac:parameter ac:name="fieldName">info</ac:parameter>
        <ac:parameter ac:name="action">Hide field</ac:parameter>
        <ac:parameter ac:name="actionFieldName">sel</ac:parameter>
        <ac:parameter ac:name="withReverseRule">true</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <br/>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="8083b67c-4826-4827-8c96-ccdadac708ea" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">sel:1</ac:parameter>
        <ac:parameter ac:name="noPropagation">true</ac:parameter>
        <ac:parameter ac:name="values">info=Value 1 was selected</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">sel</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="a18e8d56-e99d-4611-b67f-855904fbbfe6" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">sel:2</ac:parameter>
        <ac:parameter ac:name="noPropagation">true</ac:parameter>
        <ac:parameter ac:name="values">info=Value 2 was selected</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">sel</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="9eacbb0a-199b-4151-a5c4-1d8847981f5a" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">sel:3</ac:parameter>
        <ac:parameter ac:name="noPropagation">true</ac:parameter>
        <ac:parameter ac:name="values">info=Value 3 was selected. It is the biggest possible!</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">sel</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>