Expand my Community achievements bar.

this.rawValue

Avatar

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??

Cheers

-Al

2 Replies

Avatar

Level 2

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

Avatar

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;