These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to fix: this.getField is not a function

amin.nas
Registered: Oct 3 2007
Posts: 37

I am trying to display a hidden barcode when the user clicks on a radio button. I am using the following javascript on the mouseUp event:

this.getField("barcode1").display = display.visible;

But it's not working, and I get the following error from debugger:
this.getField is not a function

Is there any way to fix this?

thanks,
amin

stephen.mcc
Registered: Nov 30 2005
Posts: 5
this.getField does not work the same in LiveCycle Designer as it does in Acrobat forms. You cannot use "this" because it refers to a different kind of object.

if all you want to do is to make the barcode1 field visible all you have to do is to call it directly, something like this:

form.barcode1.presence = "visible";

[bg=red]Business Forms Designer[/]