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

Custom Calculation Script Assistance

New Here ,
Dec 14, 2020 Dec 14, 2020

I have a formula in excell that calculates the numbers for me but I have been asked to convert it to a pdf format and I am not familiar with pdf calculations. Can anyone share with me the formula I need to calculate this?

I have a column that is labeled, "Drop (paig)", first box below is labeled, "Drop paigRow1". Beside that I have a  column labeled, "Pass", and the box below is labeled, "PassFailRow1". When someone types in the "Drop paigRow1" field a numeric character greater than  0.5, it will display, "Fail" in the "PassFailRow1" field. If the user types anything less than or equal to 0.5, it will display, "Pass" on the "PassFailRow1" field. 

 

Thanks in advance.

TOPICS
Edit and convert PDFs , How to , JavaScript
721
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
1 ACCEPTED SOLUTION
Community Expert ,
Dec 14, 2020 Dec 14, 2020

You can use this code in "PassFailRow1" field:

if(this.getField("Drop paigRow1").value > 0.5){
event.value = "Fail";}
else if(this.getField("Drop paigRow1").value <= 0.5){
event.value = "Pass";}
else event.value = "";

View solution in original post

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
Community Expert ,
Dec 14, 2020 Dec 14, 2020

You can use this code in "PassFailRow1" field:

if(this.getField("Drop paigRow1").value > 0.5){
event.value = "Fail";}
else if(this.getField("Drop paigRow1").value <= 0.5){
event.value = "Pass";}
else event.value = "";
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 ,
Dec 14, 2020 Dec 14, 2020
LATEST

It worked! Thank you Nesa. I hope you have a wonderful day!

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