Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How to uncheck checkboxes when a is empty - or how to not calculate non values

$
0
0

I have 2 numeric fields. When one field is greater than or equal to the second field a checkbox is checked. When the field is empty, what code do you use to ensure the checkbox is unchecked???

 

So far I'm using the following if statement using FormCalc and the calculation drop-down:

 

if (NumericField14 >= NumericField15) then

  this.rawValue = 1;

else

  this.rawValue = 0;

  endif

 

So by default it looks like this:

uncheck by default.png

How do you get the statement to not count non-values or nulls?? I've tried adding the following null statement in but I get an error message:

(theField.isNull | theField == "")

 

Any help is appreciated!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>