chrishajer

Subtotal form for bit.ly/ZbcDtw

Jan 2nd, 2013
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <forms version="1.6.11">
  3.     <form labelPlacement="top_label" useCurrentUserAsAuthor="1">
  4.         <title><![CDATA[Subtotal Form]]></title>
  5.         <description><![CDATA[Reference <a href="http://www.gravityhelp.com/forums/topic/how-to-create-a-subtotal-for-certain-products#post-112370">this topic</a>]]></description>
  6.         <confirmation type="message">
  7.             <message><![CDATA[Thanks for contacting us! We will get in touch with you shortly.]]></message>
  8.         </confirmation>
  9.         <button type="text">
  10.             <text><![CDATA[Submit]]></text>
  11.         </button>
  12.         <fields>
  13.             <field id="1" size="medium" type="section" displayOnly="1">
  14.                 <label><![CDATA[Day One]]></label>
  15.             </field>
  16.             <field id="3" isRequired="1" size="medium" type="product" inputType="singleproduct">
  17.                 <label><![CDATA[Conference Registration]]></label>
  18.                 <inputs>
  19.                     <input id="3.1">
  20.                         <label><![CDATA[Name]]></label>
  21.                     </input>
  22.                     <input id="3.2">
  23.                         <label><![CDATA[Price]]></label>
  24.                     </input>
  25.                     <input id="3.3">
  26.                         <label><![CDATA[Quantity]]></label>
  27.                     </input>
  28.                 </inputs>
  29.                 <basePrice><![CDATA[$10.00]]></basePrice>
  30.             </field>
  31.             <field id="4" size="medium" type="product" inputType="singleproduct">
  32.                 <label><![CDATA[After party]]></label>
  33.                 <inputs>
  34.                     <input id="4.1">
  35.                         <label><![CDATA[Name]]></label>
  36.                     </input>
  37.                     <input id="4.2">
  38.                         <label><![CDATA[Price]]></label>
  39.                     </input>
  40.                     <input id="4.3">
  41.                         <label><![CDATA[Quantity]]></label>
  42.                     </input>
  43.                 </inputs>
  44.                 <basePrice><![CDATA[$12.00]]></basePrice>
  45.             </field>
  46.             <field id="7" size="medium" type="number" numberFormat="decimal_dot">
  47.                 <label><![CDATA[Day One Subtotal]]></label>
  48.                 <calculationFormula><![CDATA[({Conference Registration (Price):3.2}*{Conference Registration (Quantity):3.3})+({After party (Price):4.2}*{After party (Quantity):4.3})]]></calculationFormula>
  49.                 <enableCalculation><![CDATA[1]]></enableCalculation>
  50.             </field>
  51.             <field id="2" size="medium" type="section" displayOnly="1">
  52.                 <label><![CDATA[Day Two]]></label>
  53.             </field>
  54.             <field id="5" isRequired="1" size="medium" type="product" inputType="singleproduct">
  55.                 <label><![CDATA[Open Forum]]></label>
  56.                 <inputs>
  57.                     <input id="5.1">
  58.                         <label><![CDATA[Name]]></label>
  59.                     </input>
  60.                     <input id="5.2">
  61.                         <label><![CDATA[Price]]></label>
  62.                     </input>
  63.                     <input id="5.3">
  64.                         <label><![CDATA[Quantity]]></label>
  65.                     </input>
  66.                 </inputs>
  67.                 <basePrice><![CDATA[$5.00]]></basePrice>
  68.             </field>
  69.             <field id="6" isRequired="1" size="medium" type="product" inputType="singleproduct">
  70.                 <label><![CDATA[Lunch]]></label>
  71.                 <inputs>
  72.                     <input id="6.1">
  73.                         <label><![CDATA[Name]]></label>
  74.                     </input>
  75.                     <input id="6.2">
  76.                         <label><![CDATA[Price]]></label>
  77.                     </input>
  78.                     <input id="6.3">
  79.                         <label><![CDATA[Quantity]]></label>
  80.                     </input>
  81.                 </inputs>
  82.                 <basePrice><![CDATA[$7.50]]></basePrice>
  83.             </field>
  84.             <field id="8" size="medium" type="number" numberFormat="decimal_dot">
  85.                 <label><![CDATA[Day Two Subtotal]]></label>
  86.                 <calculationFormula><![CDATA[({Open Forum (Price):5.2}*{Open Forum (Quantity):5.3})+({Lunch (Price):6.2}*{Lunch (Quantity):6.3})]]></calculationFormula>
  87.                 <enableCalculation><![CDATA[1]]></enableCalculation>
  88.             </field>
  89.             <field id="9" size="medium" type="total">
  90.                 <label><![CDATA[Total]]></label>
  91.             </field>
  92.         </fields>
  93.         <descriptionPlacement><![CDATA[below]]></descriptionPlacement>
  94.         <enableHoneypot><![CDATA[1]]></enableHoneypot>
  95.         <notification>
  96.             <to><![CDATA[{admin_email}]]></to>
  97.             <subject><![CDATA[New submission from {form_title}]]></subject>
  98.             <message><![CDATA[{all_fields}]]></message>
  99.         </notification>
  100.     </form>
  101. </forms>
Add Comment
Please, Sign In to add comment