Changes

SmartCheck Validation

23 bytes removed, 17:34, 6 February 2023
Examples
result.isPassed=false;
result.addMsg("cf_@Amount Requested.id@",'Amount Requested cannot exceed $100,000');
}</pre>
===Application Name field blank===
{result.isPassed=false;
result.addMsg('Some message here');
}</pre>
===Single field upload field has no file===
{result.isPassed=false;
result.addMsg('Please upload a file here');
}</pre>
===Multi file upload field has no files===
Used on multiline text fields to limit the minimum word entry
<pre>if(ssParseNum(form.getStr("cf_Leadershipcf_Amount Requested").split(' ').length < 100> 100000){ { result.isPassed=false; result.addMsg('"cf_@LeadershipAmount Requested.id@'",'Leadership question must have minimum Amount Requested cannot exceed $100 words,000'); }</pre>
===Count contacts in a specific role===
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:==
Smartstaff, administrator
3,576
edits