Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
<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="16fe2e75e76a3581-389ac2d5-495e43b3-b2f18031-098ab3ded59489a4d5ed345e" 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="b37d79939cc711a8-7b3227a8-4a6948eb-89d5bb9a-7588e3989a334734037ad51d" 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> </p>
    <p>
      <ac:structured-macro ac:macro-id="f191daca7405b826-5995f2b0-44394e04-afc3817f-433f16217eecc53943234f5d" 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="4fa388fbf943cdcf-06311328-40814402-896db6c4-6ad89c281cd6dc034a916db4" 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>
    <p>
      <ac:structured-macro ac:macro-id="67ba72fd-3647-4737-9f8b-a96ac06ef2da" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">order</ac:parameter>
        <ac:parameter ac:name="4959ecec-5f05-46c3-9f62-c0fee7f680e1"fieldLabel">order</ac:parameter>
        <ac:parameter ac:name="values">false</ac:parameter>
        <ac:parameter ac:name="type">hidden</ac:parameter>
      </ac:structured-macro>
    </p>
    <p> </p>
    <ac:structured-macro ac:macro-id="574c47f7-ba70-4b1d-a19b-0203c99ed116" 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="dbba1c6c436cb102-8918260e-40804056-a4159203-014a0cc188951f124454b30c" 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>
    <p> </p>
    <p> </p>
    <p> </p>
    <ac:structured-macro ac:macro-id="1f94ba1336c90b8c-d89d4d87-49b348c1-91ebab1f-8b9dd0e030659c493bad9a37" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Delete ConfiForms Entry<condition">order:true</ac:parameter>
      <ac:parameter ac:name="eventaction">onCreated<>Send Email</ac:parameter>
      <ac:parameter ac:name="title">ownedBy:[entry._user]<event">onCreated</ac:parameter>
      <ac:parameter ac:name="who">shoppingCart:13140128<title">New order</ac:parameter>
      <ac:rich-text-body>
        <p> </p>parameter ac:name="who">sasha@vertuna.com</ac:parameter>
      </ac<ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="978cba1a2fc5799d-00113843-428e4647-b4d9893e-47373649c4d7f267e4afaf8c" ac:name="confiform-iftttlist" ac:schema-version="1">
          <ac:parameter ac:name="actionformName">Send Email<>shoppingCart</ac:parameter>
          <ac:parameter ac:name="event">onCreated</ac:parameter>
rich-text-body>
            <p>
              <ac:parameterstructured-macro ac:macro-id="4aa652bf-8596-4cb0-be37-4ecc2989e862" ac:name="titleconfiform-field">New order</ac:parameter>
schema-version="1">
                <ac:parameter ac:name="whofieldName">sasha@vertuna.com<>item</ac:parameter>
           <ac:rich-text-body>
   </ac:structured-macro>
         <p>   </p>
            <ac:structured-macro ac:macro-id="b6ddb0dffd565bc0-ab23a830-46cd458c-95eca107-2fe74775e9a2b48f686df05d" ac:name="confiform-field" ac:schema-version="1">
              <ac:parameter ac:name="fieldName">item<>count</ac:parameter>
            </ac:structured-macro>
          </ac:rich-text-body>
        </ac:structured-macro>
        <p> </p>
        <p> </p>
        <p> </p>
        <p>from [entry.ownedBy]</p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:macro-id="8871775459787f49-df2f9974-49ee479e-b51da3a5-e44b1f45c80610f759c2802a" ac:name="confiform-fieldifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Delete ConfiForms Entry</ac:parameter>
      <ac:parameter ac:name="fieldNameevent">count<>onCreated</ac:parameter>
      <ac:parameter ac:name="title">ownedBy:[entry._user]</ac:parameter>
   <   <ac:parameter ac:name="who">shoppingCart:13140128</ac:structured-macro>parameter>
        </p><ac:rich-text-body>
        <p>from<p> [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="571523ad737833a4-c2901cdc-4c8640fc-879fb010-a43cd773c53649606e5db69a" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">shoppingCart<filter">ownedBy:[entry._user]</ac:parameter>
  <ac:parameter ac:name="filter">ownedBy:[entry._user]<formName">shoppingCart</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="55fb542023e20353-9d3712f2-43b94109-bfd896c0-2b222a40927ff20737c75419" 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="37ae383916909560-40a21696-4c4149c4-b465b6e1-2f5bd13dc9f3524cf5fb1199" 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="024271e453921ebb-fc91c78a-4ef044c0-977eb6f9-31e4b7b7e5461acfdafa6d51" 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="75de8c10e4963c95-c760bbb6-4f5d4ed4-b8748daf-fafb178ab9ccaf189c951880" 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="presetValues">order=true</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>
<p> </p>
<p>Storage format</p>
<p>
  <ac:structured-macro ac:macro-id="9520e49b-cda4-430f-983e-bb3efbbcb478" ac:name="children" ac:schema-version="1"/>
</p>