merchant:epaymentform:dropdown

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
merchant:epaymentform:dropdown [2012/10/22 16:06]
kat
merchant:epaymentform:dropdown [2012/10/23 11:26] (current)
nell minor editing
Line 1: Line 1:
 ====== Drop-Down ====== ====== Drop-Down ======
  
-This example code shows how to add a basic drop-down menu(list) to the Epayment form and how to assign it to specific fields depending on the placement of the drop-down. It assumes no other changes have been made to the payment form.+This example code shows how to add a basic drop-down menu (list) to the Epayment form and how to assign it to specific fields depending on the placement of the drop-down. It assumes no other changes have been made to the payment form.
  
 ===== Overview ===== ===== Overview =====
  
-A drop-down can be added to any field in the form. It is always ​important to have it assigned correctly ​so that the information ​will be transferred ​over correctly into the transaction details+A drop-down can be added to any field in the form. It is important to always assign the drop-down menu to specific fields ​so that the transaction details ​will be transferred ​to the correct field.
  
 ===== HTML ===== ===== HTML =====
  
-  *First step should be to decide where you want to place the drop down menu in your form. In this example we will be using the amount field also known as **UMamount** within the form. You can look up all the fields under the payment form documentation. [[http://​wiki.usaepay.com/​merchant/​epaymentform|EpaymentForm]]+  *The first step is to decide where you want to place the drop down menu in your form. In this example we will be using the amount fieldalso known as **UMamount**within the form. (You can look up all the fields under the complete ​payment form documentation. [[http://​wiki.usaepay.com/​merchant/​epaymentform|EpaymentForm]])
  
   *Find the field and the row attached to it within the form. Here is an example of what the  **UMamount** row with the field looks like:   *Find the field and the row attached to it within the form. Here is an example of what the  **UMamount** row with the field looks like:
Line 19: Line 19:
  </​tr>​  </​tr>​
  
-  *Select the above code from the form starting ​from **<​tr>​** to **</​tr>​** and replace it with THIS HTML code : +  *Select the form code from **<​tr>​** to **</​tr>​** and replace it with the following ​HTML code: 
  
                 <​tr>​                  <​tr>​
Line 32: Line 32:
  
  
-  *The example shows how 2 options would look. You can add as many options as you need. All you will have to do is repeat this cell **<​option value="">​……...</​option>​**. You can change the wording of the first option value to whatever you want the drop down to listthe example used here is “select one” ​+  *The example shows what the code for a drop-down with two options would look. You can add as many options as you need. All you will have to do is repeat this cell **<​option value="">​……...</​option>​**. You can change the wording of the first option value to whatever you want the drop-down to listthe example used here is “select one”.
  
-  *The value goes in between the quotations ​and what your customers will see goes between the angle brackets ​(> <)  ​+  *The value of each option ​goes between the quotation marks like this: <option value=**"​this"​**>​this</​option>, ​and the names of each option ​your customers will see goes between the angle brackets ​like this: <option value="​this"​**>this<**/​option>​. ​
  
-  *If you want to add a drop down menu and have the result ​that the customers ​choose be a custom field in the transaction details ​you would utilize UMcustom1 ( For this example ​that meant UMamount ​would of been replaced with UMcustom1 and "​Amount" ​would be titled with your custom ​name)+  *You can also add a drop-down menu that offers custom options to customers ​and then displays those options in a custom field in the transaction details. ​In the example ​shown above, this would mean changing UMamount to UMcustom1 and "​Amount" ​to the name of your custom ​field.
merchant/epaymentform/dropdown.txt · Last modified: 2012/10/23 11:26 by nell

Page Tools