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

Line objects in the tab order

poregon
Registered: Oct 27 2008
Posts: 80

When I place a multi-line text field, I'd like to have some kind of "guide" lines to display in that space as well, in case some one prints the form and fills in by hand. When I draw lines using the line object tool, though, those lines are included in the tab order, along with the text field that "lays" over the top of the lines. (I'm not using layers, or anything fancy)...how can I get the effect, without the lines being included in the tab order? (I can use any of these: Acrobat 7.0.0 Pro, Designer 7.0, Acrobat 9 Pro Extended).

poregon
Salix, Iowa

My Product Information:
Acrobat Pro 7.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Normally you would create the lines in your source document before converting to PDF and adding the form fields. You can still do this, and replace the page in your current PDF with the updated one (Document > Replace Pages), and any fields you've added will be retained.Then you can use some JavaScript to control the background color of the field. If there is no text entered, the background can be set to transparent, so the lines are visible. If the user enters some text, the background could be set to white, or some other color, thus obscuring the lines.

For example, you could use the following as the text field's custom Validation script:

// Set the background color of this field, depending on field entryevent.target.fillColor = event.value ? color.white : color.transparent;

Or, you could use the On Focus and On Blur field events
// Code for On Focus event of a text fieldevent.target.fillColor = color.white;  // Code for On Blur event of a text fieldevent.target.fillColor = ("" + event.target.value) ? color.white : color.transparent;

George