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

How can I get a script to execute while I am typeing?

StevenD
Registered: Oct 6 2006
Posts: 368

I have a text field that uses the following script to tell if the field is full to set the text size from 14 down to 12 point. I have to first loose the focus on the field before the size will change.

Is there a way to get this to happen while I am typing.

I put this script in a custom keystroke script.

if(event.fieldFull)
{
event.target.textSize = 12;
}

StevenD

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Have you searched for Ted Padova's "goNext()" function?

This user created function will autotab based on the number of characters entered into a field. You should be able to modify it to trigger a logical value so when a given number of characterless have been entered the function would notify you to change the font size as needed.

I am not familiar with the "fieldFull" property in JavaScript, but there is a "full" event in LiveCycle Designer, but this event depends on the field having a set number of characters irregardless of the font size.

George Kaiser