Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Storage format for the demo available at Page to demo score calculation using 2 methods

Code Block
<ac:structured-macro ac:macro-id="a2d2bfea-0bba-47af-ae0a-01a323851220" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">dynamicUpdate</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="b6631389-01f4-4242-9ab0-8020c9885033" 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="cc209445-e32a-42fa-8e38-295eb3b315e4" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown1</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown1</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="9ff6bc95-ff21-4560-922c-2e92b4bf3c31" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown2</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown2</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d912e14a-5aa3-4f60-a47a-f3d5c74d4f6d" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown3</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown3</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="9ea7fb9b-8731-488b-b02c-eee0c4bf73b6" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown4</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown4</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="3a8f2d3d-a25f-45d2-8ee3-9127eb612bc8" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">score</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Score</ac:parameter>
        <ac:parameter ac:name="type">read_only</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d0991763-369b-496d-815f-a656ae275d41" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="values">score=([entry.dropdown1]+[entry.dropdown2]+[entry.dropdown3]+[entry.dropdown4])</ac:parameter>
        <ac:parameter ac:name="action">Set expression</ac:parameter>
        <ac:parameter ac:name="actionFieldName">dropdown1</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d3265dcb-70e0-4c9f-9030-4500d275273c" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="values">score=([entry.dropdown1]+[entry.dropdown2]+[entry.dropdown3]+[entry.dropdown4])</ac:parameter>
        <ac:parameter ac:name="action">Set expression</ac:parameter>
        <ac:parameter ac:name="actionFieldName">dropdown2</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="8c1b845b-0f5a-49b8-b555-c6c3adb602f8" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="values">score=([entry.dropdown1]+[entry.dropdown2]+[entry.dropdown3]+[entry.dropdown4])</ac:parameter>
        <ac:parameter ac:name="action">Set expression</ac:parameter>
        <ac:parameter ac:name="actionFieldName">dropdown3</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="2fa6b27e-d492-4036-aeb2-48106f602af9" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="values">score=([entry.dropdown1]+[entry.dropdown2]+[entry.dropdown3]+[entry.dropdown4])</ac:parameter>
        <ac:parameter ac:name="action">Set expression</ac:parameter>
        <ac:parameter ac:name="actionFieldName">dropdown4</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="dacc9784-712c-4e02-b6cb-0e1538397022" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">dynamicUpdate</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="375d7407-cc3a-485c-8345-12932daac5e8" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown1</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="7c5b434b-f639-469e-885f-b5d7f5441998" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown2</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="bbcb05ba-8098-44b8-9b4e-8793b3314f70" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown3</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="778ef062-8650-4738-9ecb-3a6213ea180a" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown4</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="79959b40-bdc8-40d8-96cc-fd322938f87b" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">score</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<p> </p>
<p> </p>
<ac:structured-macro ac:macro-id="16ebbaa3-dcc6-4d75-b5a3-76b9006f4d38" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">nonDynamicUpdate</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="3ecd6e4e-bb0b-48a7-bf02-aac1bb002a09" 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="d66b1892-af5c-4a84-94ac-481ae44fecce" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown1</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown1</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="8a832cf6-2ef2-40ba-8448-3976c2a64c6c" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown2</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown2</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="989585cb-2876-4c02-8f6c-112934bf8d8c" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown3</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown3</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="541f1f43-8c18-4ac1-ba5b-840afab77bac" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown4</ac:parameter>
        <ac:parameter ac:name="fieldLabel">dropdown4</ac:parameter>
        <ac:parameter ac:name="values">false[1=one|2=two|3=three|4=four|5=five|]</ac:parameter>
        <ac:parameter ac:name="type">select</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="7c9630f3-6951-487a-a991-b141932eb1b1" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">score</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Score</ac:parameter>
        <ac:parameter ac:name="type">read_only</ac:parameter>
      </ac:structured-macro>
    </p>
    <p> </p>
    <ac:structured-macro ac:macro-id="074735b9-0018-43c8-974e-7c740d270d4e" 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">entryId=[entry.id]&amp;score=([entry.dropdown1]+[entry.dropdown2]+[entry.dropdown3]+[entry.dropdown4])</ac:parameter>
      <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="24b5caff-f8fa-4693-89e9-1a0efc60fa08" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">nonDynamicUpdate</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="3c557ce1-6507-43ff-9200-6699022c3a98" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown1</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="73d3921a-2f13-4702-9cc2-23ba6c7b6bef" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown2</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="84944005-d0cc-4afe-ad9d-40b293eeb361" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown3</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="904084b6-6b02-4a22-89d8-db0e89c827af" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">dropdown4</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="df8487da-4314-406f-9433-e3f46431ea86" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">score</ac:parameter>
      </ac:structured-macro>
    </p>
    <p> </p>
  </ac:rich-text-body>
</ac:structured-macro>