Difference between revisions of "SmartCheck Validation"
From SmartWiki
(Created page with "Field names need to be encapsulated with double quotes") |
|||
Line 1: | Line 1: | ||
Field names need to be encapsulated with double quotes | Field names need to be encapsulated with double quotes | ||
+ | |||
+ | if((form.getStr('starthour')+form.getStr('startminute')) >= (form.getStr('endhour')+form.getStr('endminute') )) | ||
+ | {result.isPassed=false; | ||
+ | result.addMsg('endhour','End time cannot be earlier than start time'); } |
Revision as of 15:44, 26 June 2015
Field names need to be encapsulated with double quotes
if((form.getStr('starthour')+form.getStr('startminute')) >= (form.getStr('endhour')+form.getStr('endminute') )) {result.isPassed=false; result.addMsg('endhour','End time cannot be earlier than start time'); }