2,004
edits
Changes
no edit summary
=Examples=
<pre>if(ssParseNum(form.getStr("cf_Amount Requested")) > 100000)
{result.isPassed=false;
}</pre>
<pre>if(form.getStr("sf_Application Name") == "")
{result.isPassed=false;
}</pre>
<pre>if(ssParseNum(form.getStr("cf_Requested Amount")) < "5000")
{result.isPassed=false;
}</pre>
<pre>if(ssParseNum(form.getStr("cf_Store Value")) > 5)
{result.isPassed=false;
</pre>
<pre>if("@Single File Field.filename@" == "")
{result.isPassed=false;
</pre>
<pre>if(ssParseNum("@level1.MUlti upload.numoffiles@") < 1)
{result.isPassed=false;
result.addMsg('Please upload at least one file'); }</pre>
===Comparing two custom date fields with separate custom time fields storing 24 hour time===
<pre>if(form.getStr("cf_Event Start Date")+' '+form.getStr("cf_Event Start Time") >= form.getStr("cf_Event End Date")+' '+form.getStr("cf_Event End Time"))
===To include other scripts into a SmartCheck script:===