I am building a bunch of PDFs with fillable form fields for work. I will host these PDF's online (company website). I've already figured out how to clear these forms when they are loaded using the attached code.
This function works great when the PDFs are stored locally (on the computers hard drive) but I noticed when the PDFs are hosted online the data doesn't get cleared. So if a user logs into a PDF from their web browser and then goes back into the PDF at a later point in time the data they entered into the form remains :(
How can I make sure the data doesn't get cached in a browser?
p.s. I am using "Adobe Acrobat Pro v7" to create these PDFs
// variable to store whether document has been opened already or not
if(bAlreadyOpened != "true")
// document has just been opened
// now set bAlreadyOpened to true so it doesn't
// run again
bAlreadyOpened = "true";
// document has already been opened
// call the docOpened() function