this.rawValue

Avatar

Avatar

Al_NZ-qvcwdZ

Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ

23-03-2016

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

paulk07

Avatar

paulk07

paulk07

23-03-2016

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;

Avatar

Avatar

Al_NZ-qvcwdZ

Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ

23-03-2016

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