Title: Message
Hi, all
 
Could somebody please help my poor, useless friday afternoon brain out?
 
Intended result:
The user enters a multi-line field.  Because the artwork behind the field has lines and Acrobat will not allow us to set lineSpacing values, I want the field to cover the artwork behind it (seemingly erasing the lines) when the user starts entering data.  If they tab out again without typing anything - no effect.  They start typing, launch this:
 
var a = this.getField('1.describe');
 
a.fillColor = color.white;
a.borderStyle = border.s;
a.lineWidth = 1;
a.strokeColor = color.black;
 
So I put the above code into the Keystroke action but it doesn't fire.  I put it (with conditional logic) into the onBlur action and the script does work as I intended, just not at the appropriate time.
 
I remember hearing something about restrictions in Keystroke scripts but I can't remember now what they were.  Is it possible to run this script on the first keystroke?
 
Thanks,
 
Mark

Reply via email to