I am looking for a solution on wordpress contact form7. either a plugin or in PHP code. I am not looking for JavaScript solution. as I have already found JavaScript solution. Again: I am looking for either plugin or PHP code. I want to use one form (CF7) and it will redirect to multiple thank you pages based on from which page the form submitted. Below example code.
if is_page(1){
contact-form will go to thank-you-page-1
} else if is_page(2) {
contact-form will go to thank-you-page-2
}