Skip to main content
Known Participant
Jul 9, 2020 10:07 PM UTC
Answered

Auto Fill

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Jul 10, 2020 5:31 PM UTC

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

9 replies

try67
Community Expert
Community Expert
Jul 9, 2020 10:16 PM UTC

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

Translate
Known Participant
Jul 10, 2020 12:23 PM UTC

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

Translate
try67
Community Expert
Community Expert
Jul 10, 2020 2:06 PM UTC

What is the name of the check-box field?

Translate