We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
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
$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