I have three different forms that I would like to do the following:
if a field in the originally saved form is changed, the change will be in a different color of type. I realize that if you change a form you will have a newer 'saved date' on the form but I would like to be able to show the changes by all the changed fields being in 'RED'.
Is this possible? This would make the form changes easily seen if the form was viewed or printed out. at the same time I would like to have a field at the top of the form say "UPDATED" + the date it was updated.
Thanks,
Bob Smith
Robert Smith Consulting
// Change the text color of this field to red
event.target.textColor = color.red;
To set the update field to the new date, you could add the following code:
// Set the value of the text field named "UPDATE" to current date
getField("UPDATE").value = "UPDATED: " + util.printd("mm/dd/yyyy", new Date());
More information is in the Acrobat JavaScript Reference. If you want to do this for other types of fields and can't figure it out, post again. You will want to set up a script to initialize the text color of the fields just before you send the form out.