}</pre>
===Application Limit Check via Specific Criteria===
Validating an application via a custom field on the form and pulling that into report criteria.
<pre>
var maxstores="TEST@ReportProperty2(32735,exportdata,,'@displ_FY@::@typeid@')@";
var selectedstore=form.getStr("cf_txt_StoreNumber");
var y=maxstores.indexOf(selectedstore);
if(y!=-1)
{result.isPassed=false;
result.addMsg('cf_@txt_StoreNumber.id@','Test');
}
</pre>
==To include other scripts into a SmartCheck script:==