Page tree
Skip to end of metadata
Go to start of metadata

Playground and DEMO space

This is a playground and demo space for ConfiForms and ConfiDoc addons developed and supported by Vertuna LLC

Most pages provide a storage format for the demo, so you can use the free add-on from Atlassian Confluence Source Editor to import this configuration into your Confluence and see it in action


Simple form with just 2 columns, a dropdown and textarea, and the rule to show textarea when a user made a choice in a dropdown and that is greater than 2 

This is how the configuration for Registrations Control looks like in the editor

The form dialog itself, online

 

Storage format for this simple 2 column form

 <ac:structured-macro ac:macro-id="a27cf138-2081-4b5c-8dcf-435b5a4c82e5" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">f1</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="02d9f61f-bf1b-49bd-8cd7-25acd37f98b0" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">choice</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Choice</ac:parameter>
        <ac:parameter ac:name="values">false[1=One|2=Two|3=Three|4=Four|5=Five|]</ac:parameter>
        <ac:parameter ac:name="fieldDescription">When more than 2 selected the comment field is shown</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="a1325449-d376-4368-81fb-2661eef2a1ce" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">comment</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Type your comment</ac:parameter>
        <ac:parameter ac:name="type">textarea</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="aff88342-f6db-45a7-8003-947c5c1e70f7" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">choice:&gt;2</ac:parameter>
        <ac:parameter ac:name="fieldName">comment</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>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="67eb0856-9621-4e39-84b2-051e67ec0a3d" ac:name="confiform-entry-register" ac:schema-version="1">
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="bdbf0409-d2da-4096-8318-2d2c690ac209" ac:name="table" ac:schema-version="1">
      <ac:parameter ac:name="style">border:0px;width:100%;</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:macro-id="89db9f05-f95a-47a3-87a2-3e9cf631a80a" ac:name="tr" ac:schema-version="1">
          <ac:parameter ac:name="style">border:0px;</ac:parameter>
          <ac:rich-text-body>
            <ac:structured-macro ac:macro-id="8c2ed390-830a-4805-8a94-657b0b0a9b5a" ac:name="td" ac:schema-version="1">
              <ac:parameter ac:name="style">border:0px;</ac:parameter>
              <ac:rich-text-body>
                <p>
                  <ac:structured-macro ac:macro-id="f035c812-fc97-4fbd-824a-18c93bbf1d33" ac:name="confiform-field" ac:schema-version="1">
                    <ac:parameter ac:name="fieldName">choice</ac:parameter>
                    <ac:parameter ac:name="withLabel">true</ac:parameter>
                  </ac:structured-macro>
                </p>
              </ac:rich-text-body>
            </ac:structured-macro>
            <ac:structured-macro ac:macro-id="19a3adff-28be-4c38-89c8-d2b0f217b215" ac:name="td" ac:schema-version="1">
              <ac:parameter ac:name="style">border:0px;</ac:parameter>
              <ac:rich-text-body>
                <p>
                  <ac:structured-macro ac:macro-id="61415777-08df-43fa-854b-9b9261638230" ac:name="confiform-field" ac:schema-version="1">
                    <ac:parameter ac:name="fieldName">comment</ac:parameter>
                    <ac:parameter ac:name="withLabel">true</ac:parameter>
                  </ac:structured-macro>
                </p>
              </ac:rich-text-body>
            </ac:structured-macro>
          </ac:rich-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>

  • No labels