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

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.


Simple demo to illustrate how a form can have a link to open another form via Javascript function


Source code (form names are changed to be form1 and form2, not myform1 and myform2)

<p>Simple demo to illustrate how a form can have a link to open another form via Javascript function</p>
<ac:structured-macro ac:macro-id="1c88dc76-d566-4e07-97e1-5a3a7471ec0b" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">form1</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="7a25c10b-4869-42be-ae60-321d932793cd" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">msg</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Say hello</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="1f7b805d-8d5b-460f-a2fb-667ed058dafd" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="formName">form1</ac:parameter>
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="7f5c5758-2320-42f2-8b16-600f1a104ed9" ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">msg</ac:parameter>
          </ac:structured-macro>
        </p>
        <ac:structured-macro ac:macro-id="a82b5725-3d08-4a2b-a5a7-8223c90b7492" ac:name="html" ac:schema-version="1">
          <ac:plain-text-body><![CDATA[<a href="javascript:cfOpenForm('myform2')">Open myform2</a>]]></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="90a448da-dfe0-4f74-a9cf-b64068f44c71" ac:name="html" ac:schema-version="1">
  <ac:plain-text-body><![CDATA[<script>
  function cfOpenForm(formName) {
   AJS.$('button.cf_' + formName).click();
  }
</script>]]></ac:plain-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="f8f71870-b5a3-4901-a5c2-3e0a8813d4d1" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">form2</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="a9574344-2a02-4542-b41e-6e7491c67f41" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dd</ac:parameter>
        <ac:parameter ac:name="fieldLabel">DropdownField</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="67427a14-a916-4b43-9979-5c4f7440baa3" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">ta</ac:parameter>
        <ac:parameter ac:name="fieldLabel">TextAreaField</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="d9722a1c-f1cc-47d5-89bb-2a9c421f6d07" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="formName">form2</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>
  </ac:rich-text-body>
</ac:structured-macro>


  • No labels