Skip to main content
Participating Frequently
October 12, 2018
Answered

How to particially flatten a form in Adobe Acrobat DC

  • October 12, 2018
  • 1 reply
  • 4354 views

I managed to flatten a form (javascript) with a Submit button. The submit button contains both javascript for flattening and submitting form via email.

This form needs to be locked when submitted by the employees but there are partially section meant for HR use. This HR use must not be flattened and HR should be able to fill this part.

Hence, how do I do this?

Note: Employees most likely to use Adobe reader

This topic has been closed for replies.
Correct answer try67

Understood. So how do I make them partially read-only when viewed by HR? And HR also get to fill the fields meant for them?


You can use this script to do it:

var fields = ["Field1", "Field2", "Field3"]; // replace with actual field names

for (var i in fields) {

    var f = this.getField(fields);

    if (f==null) {

        console.println("ERROR! Can't find: " + fields);

        continue;

    }

    f.readonly = true;

}

1 reply

Inspiring
October 12, 2018

If any users will not be using Acrobat and instead be using Reader, then flattening won't be an option. The closest you can come with Reader is to set certain fields to read-only or lock the entire form by digitally signing. E-signing with Adobe Sign will flatten the entire document, so you can't use it to exclude certain fields when flattening.

vieveAuthor
Participating Frequently
October 12, 2018

I'm sorry I don't really understand. So I can't lock some fields and left others fillable by HR is it?

try67
Community Expert
Community Expert
October 12, 2018

You can set them as read-only. It's not exactly "locking"...