You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 (or through the bundled in ConfiForms storage 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.

<p>Using 2 forms to mimic shopping cart experience</p>
<p>One form to add items to shopping cart and another form will copy the items to own dataset and delete the originals (also will sent the email to administrator)</p>
<p> </p>
<ac:structured-macro ac:macro-id="951cbde6-827c-4d31-859c-9db4c93f3194" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">shoppingCart</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="16fe2e75-389a-495e-b2f1-098ab3ded594" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">item</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="b37d7993-7b32-4a69-89d5-7588e3989a33" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">count</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Count</ac:parameter>
        <ac:parameter ac:name="type">number</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="5416141b-157e-4369-8646-43b62e22dca1" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">order</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="f191daca-5995-4439-afc3-433f16217eec" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">item</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Item</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="4fa388fb-0631-4081-896d-6ad89c281cd6" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">count</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Count</ac:parameter>
        <ac:parameter ac:name="type">number</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="4959ecec-5f05-46c3-9f62-c0fee7f680e1" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Delete ConfiForms Entry</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">id:[entry.id]</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="dbba1c6c-8918-4080-a415-014a0cc18895" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Copy ConfiForms Data</ac:parameter>
      <ac:parameter ac:name="extras">order:13140128</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">item=[entry.item]&amp;count=[entry.count]</ac:parameter>
      <ac:parameter ac:name="extras2">ownedBy:[entry._user]</ac:parameter>
      <ac:parameter ac:name="who">shoppingCart:13140128</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="1f94ba13-d89d-49b3-91eb-8b9dd0e03065" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Delete ConfiForms Entry</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">ownedBy:[entry._user]</ac:parameter>
      <ac:parameter ac:name="who">shoppingCart:13140128</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="978cba1a-0011-428e-b4d9-47373649c4d7" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Send Email</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">New order</ac:parameter>
      <ac:parameter ac:name="who">sasha@vertuna.com</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="b6ddb0df-ab23-46cd-95ec-2fe74775e9a2" ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">item</ac:parameter>
          </ac:structured-macro>
        </p>
        <p>
          <ac:structured-macro ac:macro-id="88717754-df2f-49ee-b51d-e44b1f45c806" ac:name="confiform-field" ac:schema-version="1">
            <ac:parameter ac:name="fieldName">count</ac:parameter>
          </ac:structured-macro>
        </p>
        <p>from [entry.ownedBy]</p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<h2>Shopping cart items</h2>
<ac:structured-macro ac:macro-id="a061020e-1273-4ba8-b040-2c9abd2a027e" ac:name="confiform-entry-register" ac:schema-version="1">
  <ac:parameter ac:name="formName">shoppingCart</ac:parameter>
  <ac:parameter ac:name="registrationButtonLabel">Add new item</ac:parameter>
  <ac:rich-text-body>
    <p> </p>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="571523ad-c290-4c86-879f-a43cd773c536" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">shoppingCart</ac:parameter>
  <ac:parameter ac:name="distinct">ownedBy:[entry._user]</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="55fb5420-9d37-43b9-bfd8-2b222a40927f" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">item</ac:parameter>
      </ac:structured-macro> <strong> <ac:structured-macro ac:macro-id="37ae3839-40a2-4c41-b465-2f5bd13dc9f3" ac:name="confiform-field" ac:schema-version="1">
          <ac:parameter ac:name="fieldName">count</ac:parameter>
        </ac:structured-macro> </strong>
      <ac:structured-macro ac:macro-id="024271e4-fc91-4ef0-977e-31e4b7b7e546" ac:name="confiform-entry-edit" ac:schema-version="1">
        <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
        <ac:rich-text-body>
          <p> </p>
        </ac:rich-text-body>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<hr/>
<p>Click on "Make an order" when you are ready and all items are added to the shopping cart</p>
<ac:structured-macro ac:macro-id="75de8c10-c760-4f5d-b874-fafb178ab9cc" ac:name="confiform-entry-register" ac:schema-version="1">
  <ac:parameter ac:name="autoenroll">true</ac:parameter>
  <ac:parameter ac:name="formName">order</ac:parameter>
  <ac:parameter ac:name="registrationMessage">Your order has been sent</ac:parameter>
  <ac:parameter ac:name="registrationButtonLabel">Make an order</ac:parameter>
  <ac:rich-text-body>
    <p> </p>
  </ac:rich-text-body>
</ac:structured-macro>

  • No labels