Skip to main content
Participant
April 20, 2023
Answered

How to create an If Then formula in a PDF

  • April 20, 2023
  • 1 reply
  • 1645 views

I need to know how to get a value to return as a Yes if a certain criteria is met and No if it is not met.

 

If the cell named "score" returns a value of 51 or higher, then I need the cell named "Text4" to return the value Yes. If "score" returns a value of 50 or lower, then "Text4" needs to return a value of No. 

 

The cell "score" is setup to calculates a value based on other things in the form. So the value will change as more things are marked on the form. 

 

Thank you in advance!

This topic has been closed for replies.
Correct answer try67

As the custom calculation script of "Text4" enter the following:

event.value = Number(this.getField("score").valueAsString) <= 50 ? "No" : "Yes";

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 20, 2023

As the custom calculation script of "Text4" enter the following:

event.value = Number(this.getField("score").valueAsString) <= 50 ? "No" : "Yes";

Participant
April 21, 2023

Oh my gosh! You are the best. Thank you so much. You made my Friday.