Changes

SmartCheck Validation

393 bytes added, 16:14, 1 September 2017
no edit summary
result.addMsg('cf_@Project Start Date.id@', 'Project Start Date is a required field.');
}</pre>
 
===Validation on a Select Many Checkbox Field===
result.addMsg('cf_@Additional Email 1.id@','Please enter a valid e-mail address.');
}</pre>
 
===Validate that the status of the organization is Active===
{result.isPassed=false;
result.addMsg('Please update your Organization Profile then return to this record and click Submit Application.');
}</pre>
 
===Validation on a Note Enabled Multiple-Line custom field===
When validating against a Note Enabled field, within the result.addMsg() alert you will need to include '''h''' in-front of the custom field reference.
 
<pre>if(form.getStr("cf_notefield")==""){
result.isPassed= false;
result.addMsg("cf_h@notefield.id@","You must type in a description before submitting for revisions.");
}</pre>
0
edits