How to protect my javascript for form submission from authorized changes?
Hi all,
I have a PDF form created with some validation.
I'm using Customized JavaScript for the submit button to send the form contents to my server.
The server will take 2 things: 1. the complete pdf. 2. the html data of the fields desired
so in the JavaScript actually I defined some logic to control what to send to server and what not to send.
I realize if anyone has Acrobat DC and knows about JavaScript, they can actually change my submit button JavaScript code or change the logic and send invalid data or even attack my server in some sense.
How do I prevent that from happening?
I'm trying to find some locking mechanism. Someone suggest about File->Properties->Security
However, it's locking file opening, editing, printing..etc, but not the JavaScript.

What I really is, I only want to lock the scripts from editing, but not locking the complete PDF form. The form need to be filled up by users, but the users shouldn't change the JavaScript code for form submission or field validation.
