Hi,
I am using Adobe Acrobat Pro XI and would like to have a field not print its content if the form has not been saved since it was opened. I have 2 form fields in my document and below is the java script applied to them:
//<Document-Level>
//<ACRO_source>Init</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Level:Init ***********/
var f = this.getField("DateCreation");
f.value = "COPY: this copy is for reference only and will expire 7 days from " + util.printd("mm-dd-yy", new Date()) + " or the saved date below, whichever occurs first";
strMsg = "Saved on: " + util.printd("mm-dd-yy",this.modDate);
this.getField("DateSaved").value = strMsg;
//</ACRO_script>
//</Document-Level>
//<Document-Actions>
//<ACRO_source>Document Will Save</ACRO_source>
//<ACRO_script>
/*********** belongs to: Document-Actions:Document Will Save ***********/
strMsg = " Saved on: " + util.printd("mm-dd-yy",new Date());
this.getField("DateSaved").value = strMsg;
//</ACRO_script>
//</Document-Actions>
The DateSaved field properties are set to "hidden but printable," but I also want the DateSaved field to NOT print its content if the document has not been saved since it was opened. Is this possible?
Thank you for your help!