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.

Page contains 2 forms

  • to store the choices
  • to allow users to select a choice or add new one via text field

Uses ConfiForms IFTTT to add an option into the "choices" form 

 

 <ac:structured-macro ac:macro-id="df4a616e-0206-4017-a7ea-96fe85f19f64" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">choices1</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="ac87a109-eb3c-4b09-bf42-4502bb39c32f" 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="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="6a3db5cc-f2d4-4425-852c-667e2ab73446" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="741bee2a-a8e6-4100-899b-c827ab4ee90a" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">mychoices1</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="45a80c97-4b78-45cf-9f2c-2e6c0a965599" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">makeChoice</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Make a choice</ac:parameter>
        <ac:parameter ac:name="values">[9371754|choices|choice|true||]</ac:parameter>
        <ac:parameter ac:name="type">smartselect</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="b5c7b3d1-d089-4967-848c-009ab846b2dc" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">makeChoice.choice:Other</ac:parameter>
        <ac:parameter ac:name="fieldName">ownChoice</ac:parameter>
        <ac:parameter ac:name="action">Show field</ac:parameter>
        <ac:parameter ac:name="actionFieldName">makeChoice</ac:parameter>
        <ac:parameter ac:name="withReverseRule">true</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="e46a185f-b4c2-4e9b-b2b8-f7f318f011a9" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">ownChoice</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Other</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="48d7cf7f-43d0-4314-abc0-22595f53f328" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="7e6740f7-1597-4e73-960d-86812145cf2e" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">choice=[entry.ownChoice]</ac:parameter>
      <ac:parameter ac:name="who">choices1:9371754</ac:parameter>
      <ac:parameter ac:name="condition">!ownChoice:[empty]</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>

Make sure to change the page id in the destination for IFTTT macro (where the record will be added)

<ac:parameter ac:name="who">choices1:9371754</ac:parameter>
  • No labels