Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges



Level 2

Hi All,

I have been mucking around in javascript in acrobat for a little while and playing with javascript in forms.

I have tried using some code that refers to this.rawValue - which I would assume returns the unformatted value of the field that has focus?

The problem is that if I try to debug the value for this.rawValue it is always undefined.

Lets say I add javascript on blur to a form. And have a single line of code:

app.alert("The value is: " + this.rawValue);

I always get undefined no matter what is in the corresponding field.

What am I missing??



2 Replies


Level 2

Even app.alert(this.fieldname); is undefined....


Level 6

I'm no expert but I think you need to define the .rawValue.  This is just an example from a form:

this.rawValue = page1.rsalutation.rawValue + "_" + page1.rfirstname.rawValue + "_" + page1.rlastname.rawValue;