SmartCheck Validation

Revision as of 12:48, 4 August 2015 by Serkan (talk | contribs)

Revision as of 12:48, 4 August 2015 by Serkan (talk | contribs)

Field names need to be encapsulated with double quotes

Compare Start Time versus End Time

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