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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Button desabled once pdf was saved


Not applicable

First of all, I'm trying to be understable 'cause I'm french and my english isn't so good.

I've made a form with Designer.

In this form, all textFields are "readOnly".

When users click on a button, there is a window which ask a password.

If password is OK, all the textField become "open".

But if users (with reader and extended feeater allowed) or me on Acrobat Pro "save as" the document; the boutton is desabled on the saved document. Nothing happend when I click on the button.

So my form is unusable

Someone can help me ??

Thanks a lot

5 Replies


Level 10
Sounds like there is code running behind that button. Where did you get the form? I assume that you did not build it. It would be impossible to determine what the author of the doc had in mind without looking at that code.


Not applicable
I'm the author of the form.

I put a javascript code on the button and created a hidden textField.

THis textField contain a "0" in initialize.

When users enter the right password, this value is changed in "1"

Then all textfield are "open".

Am I clear ? My english is so bad ...


Not applicable
----- formulaire1.p1.Page1.print::click: - (JavaScript, Client) ------------------------------------, "0", ( -1).toString(), 0, 1, 0, 0, 0);

----- - (JavaScript, Client) -------------------------------- = "readOnly"

----- - (JavaScript, Client) -------------------------------------- =

----- formulaire1.p1.Page1.ref::initialize: - (FormCalc, Client) -----------------------------------

formulaire1.p1.Page1.ref.access = "readOnly"

----- formulaire1.p1.Page1.ref::exit: - (FormCalc, Client) -----------------------------------------

formulaire1.p1.Page2.ref.rawValue = formulaire1.p1.Page1.ref.rawValue

----- formulaire1.p1.Page1.eff::initialize: - (FormCalc, Client) -----------------------------------

formulaire1.p1.Page1.eff.presence = "hidden"

----- formulaire1.p1.Page1.eff::click: - (JavaScript, Client) --------------------------------------;

----- formulaire1.p1.Page1.auth::initialize: - (JavaScript, Client) --------------------------------


----- formulaire1.p1.Page1.Bouton1::click: - (JavaScript, Client) ----------------------------------

if (formulaire1.p1.Page1.auth.rawValue != "1") {

var"Pour modifier le document, veuillez introduire le mot de passe","", "",1);

if (passw=="a"){


formulaire1.titre.fonct.access = "open";

formulaire1.form.sf1.txt1.access = "open";

formulaire1.form.sf2.txt2.access = "open";

formulaire1.form.sf3.txt3.access = "open";

formulaire1.form.sf4.sf41.sf411.txt411.access = "open";

formulaire1.form.sf4.sf41.sf412.txt412.access = "open";

formulaire1.form.sf4.sf41.sf413.txt413.access = "open";

formulaire1.form.sf4.sf42.txt43.access = "open";

formulaire1.form.sf4.sf43.sf431.txt431.access = "open";

formulaire1.form.sf4.sf43.sf432.txt432.access = "open";

formulaire1.form.sf4.sf44.sf441.txt441.access = "open";

formulaire1.form.sf4.sf44.sf442.txt442.access = "open";

formulaire1.form.sf4.sf44.sf443.txt443.access = "open";

formulaire1.form.sf4.sf45.txt45.access = "open";

formulaire1.form.sf4.sf46.txt46.access = "open";

formulaire1.p1.Page1.ref.access = "open"; = "open";

formulaire1.p1.Page2.ref.access = "open"; = "open";

formulaire1.p1.Page1.eff.presence = "visible" ;

formulaire1.p1.Page1.eff.relevant = " -print";

formulaire1.p1.Page2.eff.presence = "visible" ;

formulaire1.p1.Page2.eff.relevant = " -print";



----- formulaire1.p1.Page1.nump::ready:layout - (JavaScript, Client) -------------------------------

this.rawValue =


Level 10
This is difficult to do without seeing the form. Can you send it to and I will have a look.