For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
$shortdate_time = strtotime(date('Y-m-d', strtotime($data)));
$today_time = strtotime(date('Y-m-d'));
return $shortdate_time <= $today_time;
"An eval'd piece of Javascript code, which is run on each day when the calendar is displayed
You have access to the 'date' variable which is the date being tested.
set a variable called 'return' to true to stop this date from being selected.
set a variable called 'return' to false to allow this date to be selected.
e.g. to only allow future dates to be selected:
var diff = new Date().compare(new Date(date));
var result = diff < 0 ? true : false;
I added a line like thisset a variable called 'return' to true to stop this date from being selected.
and added the line to codevar return=true;
var diff = new Date().compare(new Date(date));
var result = diff < 0 ? true : false;
var return= true;
There's many ways to skin that cat, but I'd do this, with a PHP validation:
That goes in the PHP box, NOT the "Condition" box.PHP:$shortdate_time = strtotime(date('Y-m-d', strtotime($data))); $today_time = strtotime(date('Y-m-d')); return $shortdate_time <= $today_time;
-- hugh