But anyone with a little knowledge can undo that.
If you really need to lock down a form or at least detect if the form have been changed apply a digital signature or certify the PDF.
thank you for responding, but that doesn't answer my question. I'm aware of the digital signature capabilities. I also know the date is stamped on the signature as well. The issue is the font for the digital signature is so small, some in my department can't read it so they still want a text field that shows he date. That's why I need to modify or add to the current script in order to accomplish both the actions: Auto populate the date AND lock the fields all based on the digital signature.
There is a navigational panel for signatures that provides all the information about the signature There is also the loupe tool that can magnify portions of the PDF.
The signature field properties has an option for selecting all fields, fields to exclude or fields to include. No scripting needed.
The above option is only available at the time the signature field is added.
Again, my question still remains to be addressed. I am not asking for a workaround. I know that the signature info is available as well as the magnification. This is a question based on the requirements I have been given. I need to know, based on the script I provided in the original post, what can be done to lock the form and auto populate the date based on the digital signature.
There are many actions.
One could use the on focus action to populat the signing date field and then then use the on signing action to select the fields to include, exclude, or all fields as necessary.
If you are having an issue with selecting the fields to include or exclude, high light the field name and press the space bar.It is the same as using the mouse button.
I would also use the util.printd method to format the date fields since it requires only the display format ant the date object as parameters.
You have not picked up all the fields used in the time stamp for the signature. There is a time zone offset included. The displayed time is the local time for the signer. Inclusion of the time zone allows others to adjust the signing time to their time zone if needed. This woud be needed if the individual viewing the form is in a different time zone within country or around the world.
On old fashion letters the signature block was 5 at below the last line so that is al most an inch in height. Try making the field larger