Skip to main content
Nsmjc
Participant
November 5, 2018
Answered

How to Check A box if a field is not blank

  • November 5, 2018
  • 1 reply
  • 698 views

I want to have a checkbox checked if a certain field is not blank.

I have tried this formula in the text field

if (event.value=="")
{this.getField("Check Box10").value="Off"}
else
{this.getField("Check Box10").value="Yes"}

But it is not working any Ideas?

This topic has been closed for replies.
Correct answer try67

- Is the export value of the check-box really "Yes"?

1 reply

try67
Community Expert
Community Expert
November 5, 2018

- What kind of field is the second field?

- Where did you place the code?

- Are there any error messages in the JS Console after you change the field's value? (press Ctrl+J to open it)

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
November 5, 2018

- Is the export value of the check-box really "Yes"?