0
Script to calculate via action button
Engaged
,
/t5/acrobat-sdk-discussions/script-to-calculate-via-action-button/td-p/8752854
Dec 15, 2016
Dec 15, 2016
Copy link to clipboard
Copied
I have two fields .. field1 and field2 in which value will be entered and a 3rd field....... field3 which will be equal to field 1 + field 2 .
I want the calculation to be performed when i click a action button say "button1"
following was the script i used but it;s now working. I put this script in the Action button's "run a javascript"
this.getField("field3").value = this.getField("field1").value + this.getField("field2").value;
Plz help
TOPICS
Acrobat SDK and JavaScript
,
Windows
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-sdk-discussions/script-to-calculate-via-action-button/m-p/8752855#M36332
Dec 15, 2016
Dec 15, 2016
Copy link to clipboard
Copied
In what way is it not working? What happens when you click the button? Are there any error messages in the JS Console?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

