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


 

Storage format with altered form names

<ac:structured-macro ac:macro-id="323f6007-384e-41ce-8d66-7d65c436f281" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">ff</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="d6cb3d84-fe20-45ad-8d6e-496ecc522c6e" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="9465c782-5797-40c7-9222-89095c9a0612" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">q</ac:parameter>
        <ac:parameter ac:name="fieldLabel">query</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="cb67f922-12fb-4fdf-96bd-09717db2d153" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">t</ac:parameter>
        <ac:parameter ac:name="fieldLabel">t</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="63c07b5a-bd75-4d6d-9e27-be71f49bf026" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Run JavaScript</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:macro-id="7927f1ec-a5bb-46ed-a584-fe2d4d45ccb1" ac:name="noformat" ac:schema-version="1">
          <ac:plain-text-body><![CDATA[    AJS.$.ajax({
      url: AJS.params.contextPath + '/ajax/confiforms/rest/update.action?pageId=10518693&f=ff2&q=q1:[entry.q]&fv=t1:[entry.t]',
      cache: false,
      processData: false,
      contentType: false,
      timeout: 180000, // 180 sec
      type: 'GET',
      success: function (result) {
      },
      error: function (jqXHR, textStatus, errorThrown) {
      }
    });
  
]]></ac:plain-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="fa0d214d-ad97-4c99-9348-10b4389c27be" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">ff2</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="99117126-f758-48ca-ae10-9c50cb9e9206" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="1f441fe5-9992-4b2c-8845-2994d27afee1" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">q1</ac:parameter>
        <ac:parameter ac:name="fieldLabel">query1</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="04fcf5f4-5df1-4125-8d39-547723826e5e" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">t1</ac:parameter>
        <ac:parameter ac:name="fieldLabel">t1</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>

You will need to change the pageId parameter

pageId=10518693

 

 

 

  • No labels