CF7 v. 3.0.2.1
i'm almost done in creating a custom PayPal call by using the on_sent_ok hook in the Additional Information.
i'm also using the CF7 Dynamic Text Extension to grab user details.
all values are ok (i've tested the form by redirecting to a page where i output all the posted data) but there's no way to get at the "select" or "radio" selected value with jQuery()
this is the url so far:
on_sent_ok: "location = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=XXXXXX¤cy_code=EUR&amount='+jQuery('#amount').children('option').is('selected').val()+'&return=XXXXXX&rm=2&cancel_return=XXXXXX&item_name=XXXXXX&email='+jQuery('#usr_email').val()+'&first_name='+jQuery('#usr_firstname').val()+'&last_name='+jQuery('#usr_lastname').val()+'&login_name='+jQuery('#usr_loginname').val()+'&number='+jQuery('input:radio[name=number]:checked').val()+'';"
the option "amount" refers to a "select" cf7 tag (dropdown menu) with id=amount - it's needed by PayPal, it's the total amount of the transaction.
the other option "number" refers to a "radio" cf7 tag with default:1, and it's a value that i need passing.
both always output to "undefined", no matter what combination of jQuery syntax i use.
anyone with an idea? Takayuki?