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

can tabbing to a read-only control be disabled?

thfeldman67
Registered: Apr 25 2008
Posts: 23
Answered

I have two read-only controls on my form - I want them to display, but I don't want the user to be able to tab to them. Does anyone know how to disable tabbing for a single control?

Trevor Feldman
BD

My Product Information:
LiveCycle Designer, Windows
MrFlow
Registered: Sep 7 2006
Posts: 13
Save your form design in XDP format. Open the file with a normal text editor. Search the field by name.

The line you will find nearly looks like
[i][/i]change it to
[i][/i]Save the XDP and open it again with the Designer.

Ciao
Jens
thfeldman67
Registered: Apr 25 2008
Posts: 23
Thanks for the suggestion - it did work.

However, does anyone know if there is a way (either using a setting or in JavaScript code) to do this without having to resort to hacking the XDP file (i.e. to do it in LiveCycle Designer directly)?

My concern is training non-technical users how to do this (having them save a PDF to an XDP, edit it in a text editor, bring up the XDP file and resave it to a PDF provides lots of potential for someone to screw it up!)
thfeldman67
Registered: Apr 25 2008
Posts: 23
I found the way to do this in JavaScript event code - just set the access property to "protected" like so:


controlName.access = "protected";
chw
Registered: Mar 25 2008
Posts: 2
How do you code it to unprotect the field?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
The "protected" also prevents changes by FormCalc and JavaScript.

Use FormCalc to change the access property to "open"

For allowing only FormCalc or JavaScript calculations to change the field use "readOnly'.

More information is in the Scripting Reference in LiveCycle Desinger's Help.

George Kaiser

chw
Registered: Mar 25 2008
Posts: 2
Thank you. It did work.