Contact Form 7 Additional Settings Radio Redirect
-
I’m trying to redirect to alternative web address based on the radio button clicked in Contact Form 7. My CF7 form radio buttons in the Form design section is:
Your Payment Plan Choice
[radio PaymentPlanChoice “Pay Annually (12 x £12 per month)” “Pay Monthly (12 x £15 per month)”]Then, in Additional Settings I put: on_sent_ok: if( $( “input[name=’radio PaymentPlanChoice’]:checked” ).val() == “Pay Annually (12 x £12 per month)” ) { location.replace(‘https://www.google.com’) } else { location.replace(‘https://www.msn.com’) }
Trouble is I’m getting the MSN link whichever button is checked??
Can anyone PLEASE help and tell me what is going wrong. I know nothing about javascript at this moment so am trying to avoid it at the moment…
- The topic ‘Contact Form 7 Additional Settings Radio Redirect’ is closed to new replies.