Changes

Jump to: navigation, search

SmartCheck Validation

11 bytes added, 15:52, 24 March 2016
Comparing a date custom field to the current date
===Comparing a date custom field to the current date===
<pre>
if ((ssConvertDate(form.getStr("cf_Individual Review Start Date"), "@dateformat@", "yyyy-mm-dd") > "@date(currentdate)@")) { result.isPassed = false; result.addMsg('cf_@Individual Review Start Date.id@', 'Please enter a date less than or equal to today for the date.');}
</pre>
 
===Comparing a date custom field to a date that is six months ago (date must be at least six months ago)===
Smartstaff
56
edits

Navigation menu