Link to home
Create AccountLog in
Avatar of sjlevine34

asked on

How do I enter a processed string into an adobe acrobat form field.

In a textbox field on an adobe form, I would like to remove a leading character and some trailing characters from the string entered before storing it in the field.  For example, I the string entered is =ABCDE00, I would only like to store ABCDE in the field.  How do I do this? I have tried this code, triggered by the format event, but it does not work.

var d = this.getField("DIN Entry");
var a = "";
a = d.rawValue.subString(2,5);
d.rawValue = a;
Avatar of aikimark
Flag of United States of America image

What development environment are you using?
Avatar of sjlevine34


Adobe Acrobat 9 Pro.  I also have the Adobe Acrobat 9 SDK.  I am running on Windows XP.  I am not at my computer so I cannot tell you the version of JavaScript.
Avatar of leakim971
Flag of Guadeloupe image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
It did work.  Thanks.