Skip to main content
Known Participant
July 9, 2020
Answered

Auto Fill

  • July 9, 2020
  • 1 reply
  • 828 views

I am creating a form and I want it to check a box of met or unmet depending on a text field entry. So if the text field is less than 5% I want the box of unmet to be checked. Any idea how I can make that happen.

This topic has been closed for replies.
Correct answer try67

Sorry should be greater than or equal to 5% for the Criterion3Met.


Use this code as the custom validation script of the percentage field:

 

this.getField("Criterion3Met").checkThisBox(0, (Number(event.value)>=5));
this.getField("Criterion3Unmet").checkThisBox(0, (Number(event.value)<5));

1 reply

try67
Community Expert
Community Expert
July 9, 2020

What are the names of the fields? Is the text field set to the Percentage format option, or to Number, or to None?

Known Participant
July 10, 2020

The field is set as a number text field and the field I want it to fill is just a check box.

try67
Community Expert
Community Expert
July 10, 2020

What is the name of the check-box field?