0
New Here
,
/t5/acrobat-sdk-discussions/convert-if-function-into-custom-calculation-script/td-p/7988304
Jan 15, 2016
Jan 15, 2016
Copy link to clipboard
Copied
Can anyone help me with converting "IF(Line7<Line8)Line7,Line8" into a Custom Calculation Script?
TOPICS
Acrobat SDK and JavaScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Jan 15, 2016
Jan 15, 2016
var L7 = Number(this.getField("Line7").value);
var L8 = Number(this.getField("Line8").value);
event.value = (L7<L8) ? L7 : L8;
Community Expert
,
/t5/acrobat-sdk-discussions/convert-if-function-into-custom-calculation-script/m-p/7988305#M77949
Jan 15, 2016
Jan 15, 2016
Copy link to clipboard
Copied
var L7 = Number(this.getField("Line7").value);
var L8 = Number(this.getField("Line8").value);
event.value = (L7<L8) ? L7 : L8;
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
linac62352824
AUTHOR
New Here
,
LATEST
/t5/acrobat-sdk-discussions/convert-if-function-into-custom-calculation-script/m-p/7988306#M77950
Jan 15, 2016
Jan 15, 2016
Copy link to clipboard
Copied
Thank you!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

