Jason,

 

Thanks for the help. The problem with this script is that it will tab out if the field already has 4 characters in it. What I really need is a change event. I’m absolutely new to programming PDF files and can’t find the change event in the text field properties. I tried the blur event, but it only fires when I tab out. The form has text fields ACCT.3 and ACCT.4, when the value changes in ACCT.3, I want to automatically go to the ACCT.4 textbox. I think I need to add a custom keystroke event to get the change event, but don’t know how to add it for ACCT.3.

 

var a = event.value

if (a.length == 1)

{

app.alert("booga");

this.getfield("ACCT.4").setfocus();

}

 

David A. Beck

 


From: Shaw, Jason [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 1:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PDF-Forms] How do I make a form tab to the next field when the number of characters limit is reached on the current field

 

In a custom kestroke event add _javascript_:

 

var a = event.value

 

if (a.length == 4)
{
this.getField("WO.data").setFocus();
}

 

 

Jason

-----Original Message-----
From: David A. Beck [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 7:07 PM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] How do I make a form tab to the next field when the number of characters limit is reached on the current field

How do I make a form tab to the next field when the number of characters limit is reached on the current field

Acrobat 6.0

Reply via email to