Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Convert IF function into Custom Calculation Script

New Here ,
Jan 15, 2016 Jan 15, 2016

Can anyone help me with converting "IF(Line7<Line8)Line7,Line8" into a Custom Calculation Script?

TOPICS
Acrobat SDK and JavaScript
665
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 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;

Translate
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;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2016 Jan 15, 2016
LATEST

Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines