Hi!
Please add the below mentioned code in Form Maker > Forms > Form Options > Javascript section.
jQuery(document).ready(function(){
jQuery('.button-submit').click(function(){
var radioValue = jQuery('input:radio:checked').val();
if(radioValue == 'creditcard'){
window.location.href = '/your page';
}
if(radioValue == 'paypal'){
window.location.href = '/your page';
}
if(radioValue == 'mail'){
window.location.href = '/your page';
}
})
})
Please try and provide the feedback.
Thanks, have a nice day!
I added the javascript, but now the page doesn’t return anything on submit. Did I do something wrong?
Hi!
Please make sure to take only the name of your page.
https://your domain/your page
Thanks, have a nice day!
Not sure I understand. Here is my script:
}
jQuery(document).ready(function(){
jQuery(‘.button-submit’).click(function(){
var radioValue = jQuery(‘input:radio:checked’).val();
if(radioValue == ‘creditcard’){
window.location.href = ‘http://www.hedgebrook.org/donate/’;
}
if(radioValue == ‘paypal’){
window.location.href = ‘https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UZ6PC9KF3YGLG’;
}
if(radioValue == ‘mail’){
window.location.href = ‘http://www.hedgebrook.org/mail-a-check/’;
}
Please add the below mentioned code in Form Options > Javascript section.
jQuery(document).ready(function(){
jQuery('.button-submit').click(function(){
var radioValue = jQuery('input:radio:checked').val();
if(radioValue == 'creditcard'){
window.location.href = '/donate/';
}
if(radioValue == 'mail'){
window.location.href = '/mail-a-check/';
}
})
})
Also, please take a look at this video shot.
Please go to Actions After Submission, choose Action Type to be URL and add this link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UZ6PC9KF3YGLG
Let me know if there will be any further questions.
Thanks, have a nice day!
That worked! Thanks so much!