Home
  • Payments and Transfers
  • Disputes and Limitations
  • My Account
  • My Payment Methods
  • Login & Security
  • Seller Tools

How do I add user selection options to my PayPal button?

To add option fields to pass through additional information (such as text), use our four option variables: on0, os0, on1, and os1. These proprietary variables must be used in the order shown; otherwise, PayPal's system won't recognize them.

The button generator on the PayPal site lets you create two fields, but if you go into the code and manually edit the lines, you can get three or four option fields.  

Drop-down menus

The four drop-down menus would look like this:

Color

<select name="on0">
   <option value="Grass">Grass Green
   <option value="Periwinkle">Periwinkle
   <option value="Dandelion">Dandelion
   <option value="Vermilion">Vermilion
   <option value="Violet">Violet
</select>


Size

<select name="os0">
   <option value="Large">L
   <option value="Medium">M
   <option value="Small">S
</select>


Cut

<select name="on1">
   <option value="Cut 1">Cut 1
   <option value="Cut 2">Cut 2
</select>


Style

<select name="os1">
   <option value="Style 1">Style 1
   <option value="Style 2">Style 2
</select>


Text fields

The four text fields would look like this:

Color

<input type="text" select name="on0">
</select>


Size

<input type="text" select name="os0">
</select>


Cut

<input type="text" select name="on1">
</select>


Style

<input type="text" select name="os1">
</select>
Was this article helpful?

More ways we can help

How are we doing?
Take our survey

If you accept cookies, we'll use them to improve and customise your experience and enable our partners to show you personalised PayPal ads when you visit other sites. Manage cookies and learn more