Quantcast
Channel: contact form 7 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 9540

lakong on "dynamical URL after Contact Form 7 submission"

$
0
0

On this page:

http://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 = 'http://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:

http://iq.newofferings.com/wp-content/uploads/2015/04/IQDatasheet_AccountsPayable1.pdf

to:

http://iq.newofferings.com/wp-content/uploads/2015/04/accounts-payable-outsourcing-datasheet.pdf

Any suggestions would be greatly appreciated!


Viewing all articles
Browse latest Browse all 9540

Trending Articles