Show selected option as value of item_name

ahiatt
New Community Member

Hello, is it possible to update the item_name to reflect the option value that the user selected from the dropdown menu on this form? Instead of a general 'Donate to Opera on Tap', I'd rather it show the option value they chose:

 

<form id="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="" />
<input name="lc" type="hidden" value="US" />
<input name="item_name" type="hidden" value="Donate to Opera on Tap" />
<input name="item_price" type="hidden" value="Donation Amount" />
<input name="button_subtype" type="hidden" value="services" />
<input name="no_note" type="hidden" value="0" />
<input name="currency_code" type="hidden" value="USD" />
<input name="bn" type="hidden" value="PP-BuyNowBF:btn_buynow_SM.gif:NonHostedGuest" />
<table>
<tbody>
<tr>
<td><input name="on0" type="hidden" value="Fund" />Pick a Fund</td>
</tr>
<tr>
<td><select name="os0" id="os0" onchange="updateItemName()">
<option value="General Operating">General Operating</option>
<option value="Playground Operas">Playground Operas</option>
<option value="Theme of the Month">Theme of the Month</option>
<option value="ROADWORKS">ROADWORKS</option>
<option value="New Brew">New Brew</option>
<option value="Ann Arbor/Ypsilanti">Ann Arbor/Ypsilanti</option>
<option value="Atlanta">Atlanta</option>
<option value="Boston">Boston</option>
<option value="Chicago">Chicago</option>
<option value="Colorado">Colorado</option>
<option value="DC Metro">DC Metro</option>
<option value="Las Vegas">Las Vegas</option>
<option value="Los Angeles">Los Angeles</option>
<option value="Milwaukee">Milwaukee</option>
<option value="Nashville">Nashville</option>
<option value="New York City">New York City</option>
<option value="North Texas">North Texas</option>
<option value="Oklahoma City">Oklahoma City</option>
<option value="Philadelphia">Philadelphia</option>
<option value="Pittsburgh">Pittsburgh</option>
<option value="Portland">Portland</option>
<option value="San Francisco">San Francisco</option>
<option value="Seattle">Seattle</option>
<option value="Toledo">Toledo</option>
<option value="Twin Cities">Twin Cities</option>
</select></td>
</tr>
</tbody>
</table>
<input alt="PayPal - The safer, easier way to pay online!" name="submit donation" type="submit" />
<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" />

</form>
Login to Me Too
1 REPLY 1

PayPal_Dustin
Moderator
Moderator

Hi ahiatt,

 

That's a good question. For the best assistance with that question I recommend reaching out to the PayPal Merchant Technical Support team. They can also be reached on Twitter. Hope that helps. 🙂

 

- Dustin

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.