These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Make a Form that when changed will show changes in Different Color

na6t
Registered: Oct 1 2010
Posts: 2

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

My Product Information:
Acrobat Pro Extended 9.3.1, Windows
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1875
If you're talking about text fields, you can use the Validate event to run a script that changes text color. The Validate event is triggered if the field value changes. Something like:

// 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.