I have imported a form into Livecycle however I get the follwing error about the javascript.
- JavaScript scripts imported from the original PDF file need to be updated to work with Designer. Imported JavaScript scripts have been commented out. Use the Script Editor to review and update scripts attached to the form and form objects.
I have removed the comments from the script but it still does not work. This is error message that I get.
this.getField is not a function
I'm using the script on radio button selection. So depending on the selection various sections of the form will be grayed out.
The javascript I'm using is;
// Type of Change javascript
//Labels
var a = this.getField("2a");
var b = this.getField("2b");
var c = this.getField("2c");
var d = this.getField("2d");
var e = this.getField("2e");
// set them to readonly and grey
a.readonly = false;
a.fillColor = [0];
b.readonly = true;
b.fillColor = ["G", 0.75];
c.readonly = true;
c.fillColor = ["G", 0.75];
d.readonly = true;
d.fillColor = ["G", 0.75];
e.readonly = true;
e.fillColor = ["G", 0.75];
Any help would be greatly appriciated.
Thanks
When reading the documents, you will learn that 'this' is not used in LiveCycle Designer.
George Kaiser