Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

PDF Form: Blocking fields before sending by e-mail

Avatar

Level 5

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

0 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

Level 5

Hi Niall,

Great, it worked!

Thank you so much!

Marcos