Hi there!
I'm working on a dynamic form (.pdf) and i need to somehow lock all fields (really lock all fields). I already managed to change all fields .access property to either readOnly/Protected. The problem is that if someone opens a form in Acrobat it is still possible to use menu item "clear form" and booom all the data is gone. I also know it would probably be possible to unlock all fields again using js console in Acrobat (while this is rather rare case and i don't care). I want to prevent the menu item "Clear form". Is there any way I can stop this feature and offer clearing form only in certain form state (and only using a button within a form which i will hide/disable in the final state using script?)
My second questions is related to flattening - is it possible to flatten the form with javascript if a client use Reader and not Acrobat?
Any other solution that could prevent changes to document would be helpful.
Many thanks for your help,
Regards,
Bartosz