event.fieldFull Not Working on Javascript Level
Hello all,
I'm attempting to write a script that enters text into an Acrobat field via Javascript but prevents additional text from being entered once it hits the field bounds. My problem is, unlike when entering text manually, the fieldFull keystroke event property is not triggered when populating a field via Javascript. Here's an example below:
var f.addField('name', 'text', 0, [0, 200, 200, 0]);
f.multiline = false;
f.doNotScroll = true;
f.textSize = 36;
f.setAction('Keystroke', 'app.alert(event.fieldFull)');
var contents = 'I am a sentence.';
for (var i = 0; i < contents.length; i++) {
f.value += contents[i];
}The listener detects the keystrokes just fine, but for whatever reason event.fieldFull is returning false regardless of whether the text is outside the field bounds (aaand the script continues to enter text despite the fact that doNotScroll is enabled).
Any reason why this is or any possible workarounds? Thanks in advance! 🙂
