Formcalc: check for empty string in validate event
I try to use a validate event to prevent an empty string. So I used this little Formcalc script: (I prefer Javascript as well. Yet I felt it should be possible with Formcalc as well)
<pre>
if ($ == "") then
0;
else
1;
endif
</pre>
This validate event never returns 0 :-(
Does anyone have an explanation for this behavior of Formcalc?
By the way: The following line does the trick in Formcalc:
<pre>
if ($.isNull )
</pre>
<pre>
if ($ == "") then
0;
else
1;
endif
</pre>
This validate event never returns 0 :-(
Does anyone have an explanation for this behavior of Formcalc?
By the way: The following line does the trick in Formcalc:
<pre>
if ($.isNull )
</pre>