Thanks i changed 10 to 11 now it is working fine.
1) I want to map this hidden value to the url.
[hidden hidden-885 id:downloadURL “custom_field-downloadURL”]
downloadURL is the path to pdf file.
on_sent_ok: “location.replace(‘https://www.mysite.com/download.php?filename=downloadURL’);”
so that after submitting the form the pdf get downloaded.
2) If downloaded once then no need to display form second time. Directly clicking on link should download the PDF. (Someway of storing in sessions i guess).
Can you please tell me the solution for this.