• I’m trying to set up a form where you select one of two radio buttons, one is “Cash” the other is “Credit Card.” The radio button tag is [your-payment]

    On submit, it then takes you to one of two possible redirects. Basically if they select credit card, it will take them to another page to pay. If they select cash, it takes them to a simple thank you page.

    I have searched the internet and found this, but it’s not working. The form submits but I am not redirected at all and it just sits on the form.

    on_sent_ok: if( $( “input[name=’your-payment’]:checked” ).val() == Credit Card ) { location.replace(‘https://creditcardpaysiteurl’) } else { location.replace(‘https://thankyoupageurl’) }

    Help? Thank you!

  • The topic ‘Page redirect based on radio button?’ is closed to new replies.