Advertisement
chrishajer

Testing discount on screen and in notification

Aug 17th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <forms version="1.7.dev1">
  3.     <form labelPlacement="top_label" useCurrentUserAsAuthor="1">
  4.         <title><![CDATA[Test Discount]]></title>
  5.         <description><![CDATA[We would love to hear from you! Please fill out this form and we will get in touch with you shortly.]]></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" isRequired="1" size="medium" type="name">
  14.                 <label><![CDATA[Name]]></label>
  15.                 <inputs>
  16.                     <input id="1.3">
  17.                         <label><![CDATA[First]]></label>
  18.                     </input>
  19.                     <input id="1.6">
  20.                         <label><![CDATA[Last]]></label>
  21.                     </input>
  22.                 </inputs>
  23.             </field>
  24.             <field id="2" isRequired="1" size="medium" type="email">
  25.                 <label><![CDATA[Email]]></label>
  26.             </field>
  27.             <field id="3" isRequired="1" size="medium" type="address" addressType="us" hideAddress2="1">
  28.                 <label><![CDATA[Address]]></label>
  29.                 <defaultCountry><![CDATA[United States]]></defaultCountry>
  30.                 <defaultState><![CDATA[Illinois]]></defaultState>
  31.                 <inputs>
  32.                     <input id="3.1">
  33.                         <label><![CDATA[Street Address]]></label>
  34.                     </input>
  35.                     <input id="3.2">
  36.                         <label><![CDATA[Address Line 2]]></label>
  37.                     </input>
  38.                     <input id="3.3">
  39.                         <label><![CDATA[City]]></label>
  40.                     </input>
  41.                     <input id="3.4">
  42.                         <label><![CDATA[State / Province]]></label>
  43.                     </input>
  44.                     <input id="3.5">
  45.                         <label><![CDATA[Zip / Postal Code]]></label>
  46.                     </input>
  47.                     <input id="3.6">
  48.                         <label><![CDATA[Country]]></label>
  49.                     </input>
  50.                 </inputs>
  51.             </field>
  52.             <field id="5" isRequired="1" size="medium" type="radio">
  53.                 <description><![CDATA[Members of the military can receive this book for free]]></description>
  54.                 <label><![CDATA[Are you a military member?]]></label>
  55.                 <choices>
  56.                     <choice>
  57.                         <text><![CDATA[Yes]]></text>
  58.                     </choice>
  59.                     <choice>
  60.                         <text><![CDATA[No]]></text>
  61.                     </choice>
  62.                 </choices>
  63.             </field>
  64.             <field id="4" isRequired="1" size="medium" type="product" inputType="singleproduct" disableQuantity="1">
  65.                 <label><![CDATA[Book]]></label>
  66.                 <inputs>
  67.                     <input id="4.1">
  68.                         <label><![CDATA[Name]]></label>
  69.                     </input>
  70.                     <input id="4.2">
  71.                         <label><![CDATA[Price]]></label>
  72.                     </input>
  73.                     <input id="4.3">
  74.                         <label><![CDATA[Quantity]]></label>
  75.                     </input>
  76.                 </inputs>
  77.                 <basePrice><![CDATA[$15.00]]></basePrice>
  78.             </field>
  79.             <field id="6" isRequired="1" size="medium" type="product" inputType="singleproduct" disableQuantity="1">
  80.                 <label><![CDATA[Discount]]></label>
  81.                 <inputs>
  82.                     <input id="6.1">
  83.                         <label><![CDATA[Name]]></label>
  84.                     </input>
  85.                     <input id="6.2">
  86.                         <label><![CDATA[Price]]></label>
  87.                     </input>
  88.                     <input id="6.3">
  89.                         <label><![CDATA[Quantity]]></label>
  90.                     </input>
  91.                 </inputs>
  92.                 <basePrice><![CDATA[-$15.00]]></basePrice>
  93.                 <conditionalLogic actionType="show" logicType="all">
  94.                     <rules>
  95.                         <rule fieldId="5" operator="is">
  96.                             <value><![CDATA[Yes]]></value>
  97.                         </rule>
  98.                     </rules>
  99.                 </conditionalLogic>
  100.             </field>
  101.             <field id="7" size="medium" type="total">
  102.                 <label><![CDATA[Total]]></label>
  103.             </field>
  104.         </fields>
  105.         <descriptionPlacement><![CDATA[below]]></descriptionPlacement>
  106.         <notification>
  107.             <to><![CDATA[{admin_email}]]></to>
  108.             <subject><![CDATA[New submission from {form_title}]]></subject>
  109.             <message><![CDATA[{all_fields}]]></message>
  110.             <fromField><![CDATA[2]]></fromField>
  111.             <fromNameField><![CDATA[1]]></fromNameField>
  112.         </notification>
  113.         <autoResponder>
  114.             <toField><![CDATA[2]]></toField>
  115.             <fromName><![CDATA[Chris Hajer]]></fromName>
  116.             <from><![CDATA[[email protected]]]></from>
  117.             <subject><![CDATA[Thank you for testing my form]]></subject>
  118.             <message><![CDATA[Does this information match the information which was displayed online before you submitted the form?
  119.  
  120. {all_fields}]]></message>
  121.         </autoResponder>
  122.     </form>
  123. </forms>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement