Hi!
I actually have the custom field of type datepicker. I don't see which is the "advanced restriction settings", but I gave unto "Default Value" a date and then set "Allow" to "Only past dates", as you can see in the picture. Then I've got next to date entry for "Default Value"
disableFunc: function(date) { var today=new Date();
today.setHours(23);today.setMinutes(59);today.setSeconds(59);today.setMilliseconds(99); if(date > today) { return true; } return false; }, // :
After that, I tried to save it and close and I've got the following error and everything was gone
0 DateTime::__construct(): Failed to parse time string (23.05.1996",disableFunc: function(date) { var today=new Date(); today.setHours(23);today.setMinutes(59);today.setSeconds(59);today.setMilliseconds(99); if(date > today) { return true; } return false; }, //) at position 10 (&): Unexpected character
I have to remove the Custom fields and create a new one. However, every time I save the new one I get an error saying
Error
Please complete the Birthday field
I think this is not working right
Any suggestions?