Redirect page(w/ Conditions) after Submit contact form 7
-
Basically I’m trying to fix a problem regarding contact form 7. I have added a condition wherein after the user fills the form and press submit it will redirect the user to a new page. The contact form 7 I have implemented has conditions wherein it can choose which page to redirect.
But the problem is that once the user press “SEND” it will only display a “Successful Message” and will not redirect. I have inserted the contact form 7 inside a Bootstrap Modal which is part of the development.
Here is the code I have added inside the Additional Settings box of contact form 7
on_sent_ok: “var Iso = $(“option:checked”).val(); if(Iso == ‘DB180’ ){ location = ‘https://digitalspin.ph/test/icon/fiori-pdf/fiori-db180.pdf’; } if(Iso == ‘DB260’ ){ location = ‘https://digitalspin.ph/test/icon/fiori-pdf/fiori-db260.pdf’; }”
It works if I implement it outside the Bootstrap Modal. Is there a way I can implement inside the Modal?
Update:
It works on a Radio Button but i need it to be a Select Box instead of a Radio Button
on_sent_ok: “var Iso = $(“input[name=radio-757]:checked”).val() ; if(Iso == ‘DB180’ ){ location = ‘https://digitalspin.ph/test/icon/fiori-pdf/fiori-db180.pdf’; } if(Iso == ‘DB260’ ){ location = ‘https://digitalspin.ph/test/icon/fiori-pdf/fiori-db260.pdf’; }”
- The topic ‘Redirect page(w/ Conditions) after Submit contact form 7’ is closed to new replies.