Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Script Failed

Avatar

Avatar
Validate 1
Level 2
WeiHelen
Level 2

Likes

3 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
WeiHelen
Level 2

Likes

3 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
WeiHelen
Level 2

16-06-2017

I create a form and tried to use Java Script to calculate the  “Qty”  * “Rate” = “InvoiceDetails.Amount” by use ”  <calculate>  <script> function myFunction(a, b) {  return a * b; } document.getElementById("Amount").innerHTML = myFunction(Qty, Rate);  </script></calculate>” However I get error shows “Script Failed (Language is formcalc context is xfa(0).form(0).Page1(0).InvoiceDetails(0).Row(0).Amount(0) “ how can I fix it?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 3
Level 2
Karl_Heinz_Krem
Level 2

Likes

3 likes

Total Posts

38 posts

Correct Reply

3 solutions
Top badges earned
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 3
Level 2
Karl_Heinz_Krem
Level 2

Likes

3 likes

Total Posts

38 posts

Correct Reply

3 solutions
Top badges earned
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
Karl_Heinz_Krem
Level 2

16-06-2017

You've posted in the Acrobat JavaScript forum, but your problem looks like it's related to LiveCycle Designer. I suspect that you are using JavaScript code, but the language type is set to FormCalc and not JavaScript.

I've moved your question to the LiveCycle Designer forum.

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
WeiHelen
Level 2

Likes

3 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
WeiHelen
Level 2

Likes

3 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
WeiHelen
Level 2

16-06-2017

and how to switch language code from formcalc to java Script?

Avatar

Avatar
Boost 3
Level 2
Karl_Heinz_Krem
Level 2

Likes

3 likes

Total Posts

38 posts

Correct Reply

3 solutions
Top badges earned
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 3
Level 2
Karl_Heinz_Krem
Level 2

Likes

3 likes

Total Posts

38 posts

Correct Reply

3 solutions
Top badges earned
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
Karl_Heinz_Krem
Level 2

16-06-2017

2017-06-16_13-01-01.png