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, they won’t be recognized.

Our button generator lets you create two option fields, but you can manually edit the code to increase it to four.


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>

Try it yourself on the PayPal buttons page.

Additional variables

Visit HTML Variables for PayPal Payments Standard for a list of additional variables that can be passed for your button.

Autres manières d'obtenir de l'aide

Si vous acceptez les cookies, nous les utiliserons pour améliorer votre expérience et permettre à nos partenaires de vous présenter des publicités PayPal personnalisées lorsque vous visitez d'autres sites. En savoir plus et gérer les cookies