Does anyone know of a way to link to text fields so that the text will automatically flow to the next text field when that field is full?
What I have is a Remarks section on the form. The word Remarks: takes up a portion of the first line where as the lines below Remarks: start under the R. Something like this:
Remarks: ____________________________
____________________________________
____________________________________
I can use the multi-line option on the second text field but I want the text to wrap around from the first line to the second.
Any help would be greatly appreciated!
Thanks, Sarah
You could set the field attributes to a fixed number of characters for each text field and then use a JavaScript to automatically jump to the next field as the last character in the previous field is typed.
It's a bit complicated but essentially, here's how it works...
Add a Document Level JS Function, something like:
function goNext(item, event, cName)
{
AFNumber_Keystroke(0, 0, 0, 0, "",
true);
if (event.rc &&
AFMergeChange(event).length ==
event.target.charLimit)
item.getField(cName).setFocus();
}
In the Format Tab of the text field you'd add a Custom JavaScript something like:
goNext(this, event, "nextFldName");
Play around with a bit and consult the JS Specification manual.
ted
The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.