A simple this.getfield property does not work in the debugger

New Here ,
Mar 13, 2019

Copy link to clipboard

Copied

Hello,

I have a simple form with several text boxes. on of the textboxes has the name "IndFullName"

this.getfield("IndFullName").value

undefined

TypeError: this.getfield is not a function

1:Console:Exec

undefined

My result is first of all "undefined". When watching a little video that introduced javascript, the person got the value of the textbox object.

Second, I get the error "this.getfield is not a function. I am confused.

What am I doing wrong? Your help is appreciated.

Thanks, Steve

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

That's because it's getField, not getfield... JavaScript is case-sensitive.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

543

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

A simple this.getfield property does not work in the debugger

New Here ,
Mar 13, 2019

Copy link to clipboard

Copied

Hello,

I have a simple form with several text boxes. on of the textboxes has the name "IndFullName"

this.getfield("IndFullName").value

undefined

TypeError: this.getfield is not a function

1:Console:Exec

undefined

My result is first of all "undefined". When watching a little video that introduced javascript, the person got the value of the textbox object.

Second, I get the error "this.getfield is not a function. I am confused.

What am I doing wrong? Your help is appreciated.

Thanks, Steve

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

That's because it's getField, not getfield... JavaScript is case-sensitive.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

544

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 13, 2019 0
Most Valuable Participant ,
Mar 13, 2019

Copy link to clipboard

Copied

That's because it's getField, not getfield... JavaScript is case-sensitive.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 13, 2019 1