Page tree

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

To import examples from the storage format on Confluence Cloud please see this page

Please note, all the examples here are provided without any obligation and may or may not be incomplete or may have bugs, and we provide NO SUPPORT for these examples and demos.

A form with 2 fields, and the value for the second field is set based on the selection in the first field

Configuration

This is a simplified example, where each option selected has own value set to "desc" field

Each variant is defined as a separate rule, here is an example for "option nr 1"


Storage format (complete)

<ac:structured-macro ac:macro-id="a67924e9-c632-447b-b7cd-c208b2ea6f2e" 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="601dec8b-1f4c-4c08-8515-cfb6ba98cc24" 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="bdb1baa1-7ac5-4e4d-aa07-e291d9088bf9" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">d</ac:parameter>
        <ac:parameter ac:name="fieldLabel">d</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="2937c62f-619f-4cef-96f0-aa2215b03f35" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="css">background-color:#f2f2f2</ac:parameter>
        <ac:parameter ac:name="fieldName">desc</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Description</ac:parameter>
        <ac:parameter ac:name="values">Please choose the dropdown choice</ac:parameter>
        <ac:parameter ac:name="type">read_only</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="42ce6875-3ce0-493d-9a42-2dfbdae57767" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">d:1</ac:parameter>
        <ac:parameter ac:name="values">desc=the one has been chosen</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">d</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d439b88c-f1c4-4b3e-8d1a-aaa80daf1f4a" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">d:2</ac:parameter>
        <ac:parameter ac:name="values">desc=when 2 has been selected</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">d</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="16d563b4-9b20-4876-9f68-806d7a684151" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">d:3</ac:parameter>
        <ac:parameter ac:name="values">desc=three is the winner</ac:parameter>
        <ac:parameter ac:name="action">Set value</ac:parameter>
        <ac:parameter ac:name="actionFieldName">d</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

  • No labels