I am collecting information from a web application, placing this information into a PDF template that contains JavaScript to populate/calculate many of the other data fields of the document. When the PDF is saved in a flattened format, the JavaScript to calculate many of the fields is removed resulting in those data items being 0 or not filled out. Is there a way to retain the JavaScript for a flattened PDF? The customer wants the data fields locked, i.e. the cursor can not be placed in the field. Flattening does this but marking the data field as read-only does not. The cursor can still be placed in the field, albeit, the value can not be changed. So, whatever implementation meets that need would be the desire. Thanks!