Expand my Community achievements bar.

SOLVED

The difference in javascript used in Acroforms vs. LC forms?

Avatar

Level 6

Why won't the JavaScript used in AcroForms work with LC designer forms...isn't it just...JavaScript - all the same???. Even when you import a form design in Acrobat into LC, it warns you that the JavaScript needs to be edited/re-scripted.

The reason I bring this up is because the form filling App -  PDF Expert - will accept JavaScript used in AcroForms, i.e.:

var f = this.getField("qty.0");
var g = this.getField("each.0");

if (f.value != 0)
event.value = f.value * g.value
else
event.value ="";

but it wont accept JavaScript used in LC designer:

this.rawValue = qty.rawValue * each.rawValue;

Sorry if this is a novice questions, but just trying to get an understanding.

Thanks,

S

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi,

Though we use Adobe JavaScript for both Acro forms and XFA forms some of the methods/functions will not work in LiveCycle and vice versa. Generally we won't use this.getField method in LiveCycle.

Here is a link for you that can provide some understanding.

http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf

Thanks,

Bibhu.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

Hi,

Though we use Adobe JavaScript for both Acro forms and XFA forms some of the methods/functions will not work in LiveCycle and vice versa. Generally we won't use this.getField method in LiveCycle.

Here is a link for you that can provide some understanding.

http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf

Thanks,

Bibhu.