SmartCheck Validation

From SmartWiki
Revision as of 16:44, 26 June 2015 by Serkan (talk | contribs)

Jump to: navigation, search

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');  }