dynamical URL after Contact Form 7 submission
-
On this page:
https://iq.newofferings.com/accounts-payable-outsourcing-datasheet/
I send the user to a PDF upon submission (feel free to fill in the form, it’s just a test server). I use:
on_sent_ok: “location = ‘https://iq.newofferings.com/wp-content/uploads/2015/04/IQDatasheet_AccountsPayable1.pdf’;”
In the additional settings dialogue box in CF7. However, I have several WP pages that essentially use the same form, but each needs to send the user to a different PDF URL.
How can I change the location URL dynamically. If I can simply substitute the page slug, I can easily change the names of each PDF. So for example, I can change:
https://iq.newofferings.com/wp-content/uploads/2015/04/IQDatasheet_AccountsPayable1.pdf
to:
https://iq.newofferings.com/wp-content/uploads/2015/04/accounts-payable-outsourcing-datasheet.pdf
Any suggestions would be greatly appreciated!
- The topic ‘dynamical URL after Contact Form 7 submission’ is closed to new replies.