on_sent_ok Addition Setting (using Select Option)
-
Hello Everyone,
I have been working on this for quite sometime. I would like to allow the user to select different value for payment to Paypal, but unfortunately this is not working. I have a lot of doubt about the state “jQuery(‘#PRICE_FIELD’).PRICE_FIELD(‘option’).is(‘selected’).val()+'” is working. Can anyone please help me out here.
Contact form
<div style=”float: left; width: 30%; text-align: left”>
<p>Type of Membership
[select* MemType 15/40 id:PRICE_FIELD tabindex:12 include_blank “Adult $10/- per year|10” “Child (Age 13 and under) $5/- per year|5”]</p>
</div>Additional Settings
on_sent_ok: ” if (document.getElementById(‘chessrating’).value> 2200) {location.replace(‘https://www.greensborochess.org/thank-you-for-your-participation/’)} else {location = ‘https://www.sandbox.paypal.com/?cmd=_xclick&[email protected]¤cy_code=USD&amount=’+jQuery(‘#PRICE_FIELD’).PRICE_FIELD(‘option’).is(‘selected’).val()+’&return=https://www.greensborochess.org/thank-you/&rm=2&cancel_return=https://www.greensborochess.org/gcc-open-tournament-cancellation/&item_name=GCC Membership&address1=’+jQuery(‘#add’).val()+’&city=’+jQuery(‘#city’).val()+’&zip=’+jQuery(‘#zipc’).val()+’ &email=’+jQuery(‘#email’).val()+’&first_name=’+jQuery(‘#fname’).val()+’&last_name=’+jQuery(‘#lname’).val()+’&state=’+jQuery(‘#state’).val()+”;} “Many Thanks
Jacob
- The topic ‘on_sent_ok Addition Setting (using Select Option)’ is closed to new replies.