...
Passing custom field data from Buy Form code
The following example shows contains 2 custom fields". The first custom field (on line 4) is a hidden input field that passes "New Landing Page" into "CustomField1" to identify that the sale came from the new landing page rather then default store location. A second custom field "CustomField2" (line 10) is storing the value for a field asking the customer "What breed of dog(s) do you have?"
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
## This snippet contains custom fields for inclusion in tointo the checkout <div class="row js-show-shipping"> <div class="columns small-16"> <div class="UcCustomTable"> <div class="UcCustomTableTitle"> <h2>Complete the following, if applicable.</h2> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 1 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name="CustomField1" value="$!customField1"/>/><br> </div> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 2 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name="CustomField2" value="$!customField2"/><br> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 3 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name="CustomField3" value="$!customField3"/><br> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 4 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name="CustomField4" value="$!customField4"/><br> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 5 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name"CustomField5" value="$!customField5"/><br> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 6 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name"CustomField6" value="$!customField6"/><br> </div> <div class="UcCustomTableRow"> <div class="UcCustomTableCell"> <h3>Custom Field 7 Label</h3> </div> <div class="UcCustomTableCell"> <input type='text' class="ucFormField" style="width:315px" name"CustomField7" value="$!customField7"/><br> </div> </div> </div> </div> </div> |
...