Changes

SmartCheck Validation

8 bytes added, 18:59, 4 December 2015
no edit summary
{result.isPassed=false;
result.addMsg('Application name cannot be blank');
}</pre> 
====Number value greater than 5 -> Fail:====
<pre>if(ssParseNum(form.getStr("cf_Store Value")) > 5)
}
</pre>
 
====Single field upload field has no file -> Fail:====
<pre>if("@Single File Field.filename@" == "")
}
</pre>
 
====Multi file upload field has no files -> Fail:====
<pre>if(ssParseNum("@level1.MUlti upload.numoffiles@") < 1)
result.addMsg('Please upload at least one file'); }
</pre>
 
====End date is before Start date -> Fail:====
<pre>if (datediff('@date(startdate)@','@date(enddate)@','d') < 0)
{result.addMsg('End date must be later than Start date'));
result.isPassed=false;
}</pre> 
====To include other scripts from SmartCheck script:====
<pre>//@include(AnotherSmartCheckScriptName)</pre>
2,004
edits