These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

scripting for field on master page

Zeynep
Registered: Nov 29 2008
Posts: 21

Hi everybody,

I'm trying to build a form with custom submit and reset buttons, where 'submit' is supposed to set all editable fields to readOnly. One of the fields that needs to become readOnly is a 'form number' field on the master page.

The script I wrote works on all the fields in the form design, but not on the field on the master page.

Is this just not doable or am I doing it wrong?
I added the master page field to the script by control clicking over it, so it looks like this:

xfa.resolveNode("#pageSet.Page1.formNumber").access = "readOnly"

Do I need to change the reference somehow?

Thanks,
Zeynep

My Product Information:
LiveCycle Designer, Windows
madhu_livecycle
Registered: Jun 23 2009
Posts: 13
Hi Zeynep,

where u r writing this code for the submit button u mentioned and in the click event of it?

if so it is correct and i checked your code and it works for me.


Thanks,
Madhu.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Look here

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=19725

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Zeynep
Registered: Nov 29 2008
Posts: 21
Hi again, thanks so much for your responses.

I was putting my script in the click event of the button, and I also wanted to show/hide certain buttons on the form, so I'd written a script to do both, rather than use a loop for all fields.
But now, I tried placing the 'for loop' I found at Radzmar's link in my click event and it still works on all the fields except the one on the master page.

Do I need to do something to the master page set up?

Zeynep