Expand my Community achievements bar.

SOLVED

PDF Form: Blocking fields before sending by e-mail

Avatar

Former Community Member

Hello!

I've scratching my head with this problem for a while: I have this form that must be sent by e-mail with some of the fields locked (read only).

So what I'm doing is setting this BEFORE I e-mail the form:

     fieldName.access = "readOnly";

     app.execMenuItem("SaveAs");

However, the form always arrives at its destination with the field unlocked and ready for editing.

Am I missing something?

Thank you for any ideas!

Marcos


1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Marcos,

Just check first that the Preserve Script Changes is set to Automatic.

Preserve script changes.png

Next, make sure that the script has fully executed before the email script. It might help to place the access script in the mouseUp event, which fires before the click event (containing the saveAs script).

I would then test this separate to the email script and see does it work on the local PC.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi Marcos,

Just check first that the Preserve Script Changes is set to Automatic.

Preserve script changes.png

Next, make sure that the script has fully executed before the email script. It might help to place the access script in the mouseUp event, which fires before the click event (containing the saveAs script).

I would then test this separate to the email script and see does it work on the local PC.

Hope that helps,

Niall

Avatar

Former Community Member

Hi Niall,

Great, it worked!

Thank you so much!

Marcos