Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <forms version="1.6.11">
- <form labelPlacement="top_label" useCurrentUserAsAuthor="1">
- <title><![CDATA[Subtotal Form]]></title>
- <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>
- <confirmation type="message">
- <message><![CDATA[Thanks for contacting us! We will get in touch with you shortly.]]></message>
- </confirmation>
- <button type="text">
- <text><![CDATA[Submit]]></text>
- </button>
- <fields>
- <field id="1" size="medium" type="section" displayOnly="1">
- <label><![CDATA[Day One]]></label>
- </field>
- <field id="3" isRequired="1" size="medium" type="product" inputType="singleproduct">
- <label><![CDATA[Conference Registration]]></label>
- <inputs>
- <input id="3.1">
- <label><![CDATA[Name]]></label>
- </input>
- <input id="3.2">
- <label><![CDATA[Price]]></label>
- </input>
- <input id="3.3">
- <label><![CDATA[Quantity]]></label>
- </input>
- </inputs>
- <basePrice><![CDATA[$10.00]]></basePrice>
- </field>
- <field id="4" size="medium" type="product" inputType="singleproduct">
- <label><![CDATA[After party]]></label>
- <inputs>
- <input id="4.1">
- <label><![CDATA[Name]]></label>
- </input>
- <input id="4.2">
- <label><![CDATA[Price]]></label>
- </input>
- <input id="4.3">
- <label><![CDATA[Quantity]]></label>
- </input>
- </inputs>
- <basePrice><![CDATA[$12.00]]></basePrice>
- </field>
- <field id="7" size="medium" type="number" numberFormat="decimal_dot">
- <label><![CDATA[Day One Subtotal]]></label>
- <calculationFormula><![CDATA[({Conference Registration (Price):3.2}*{Conference Registration (Quantity):3.3})+({After party (Price):4.2}*{After party (Quantity):4.3})]]></calculationFormula>
- <enableCalculation><![CDATA[1]]></enableCalculation>
- </field>
- <field id="2" size="medium" type="section" displayOnly="1">
- <label><![CDATA[Day Two]]></label>
- </field>
- <field id="5" isRequired="1" size="medium" type="product" inputType="singleproduct">
- <label><![CDATA[Open Forum]]></label>
- <inputs>
- <input id="5.1">
- <label><![CDATA[Name]]></label>
- </input>
- <input id="5.2">
- <label><![CDATA[Price]]></label>
- </input>
- <input id="5.3">
- <label><![CDATA[Quantity]]></label>
- </input>
- </inputs>
- <basePrice><![CDATA[$5.00]]></basePrice>
- </field>
- <field id="6" isRequired="1" size="medium" type="product" inputType="singleproduct">
- <label><![CDATA[Lunch]]></label>
- <inputs>
- <input id="6.1">
- <label><![CDATA[Name]]></label>
- </input>
- <input id="6.2">
- <label><![CDATA[Price]]></label>
- </input>
- <input id="6.3">
- <label><![CDATA[Quantity]]></label>
- </input>
- </inputs>
- <basePrice><![CDATA[$7.50]]></basePrice>
- </field>
- <field id="8" size="medium" type="number" numberFormat="decimal_dot">
- <label><![CDATA[Day Two Subtotal]]></label>
- <calculationFormula><![CDATA[({Open Forum (Price):5.2}*{Open Forum (Quantity):5.3})+({Lunch (Price):6.2}*{Lunch (Quantity):6.3})]]></calculationFormula>
- <enableCalculation><![CDATA[1]]></enableCalculation>
- </field>
- <field id="9" size="medium" type="total">
- <label><![CDATA[Total]]></label>
- </field>
- </fields>
- <descriptionPlacement><![CDATA[below]]></descriptionPlacement>
- <enableHoneypot><![CDATA[1]]></enableHoneypot>
- <notification>
- <to><![CDATA[{admin_email}]]></to>
- <subject><![CDATA[New submission from {form_title}]]></subject>
- <message><![CDATA[{all_fields}]]></message>
- </notification>
- </form>
- </forms>
Add Comment
Please, Sign In to add comment