This topic is locked
[SOLVED]

disable date

3/19/2025 1:21:13 PM
PHPRunner General questions
Roosevelt author

"Hello everyone, I hope you're having a great day! I need some help solving a problem: I'm creating an appointment schedule where there are certain days I won't be available. I want to block those days within the PHPRunner calendar. Is this possible? If so, can someone help me?"

"I want to be able to disable March 20, 2025, in the PHP Runner calendar."

$(document).ready(function() {
var disabledDates = ["20/03/2025"];
$("input[name='Data']").datepicker({
beforeShowDay: function(date) {
var string = $.datepicker.formatDate('dd/mm/yy', date);
return [disabledDates.indexOf(string) == -1];
}
});
});

img alt

img alt

C
copper21 3/19/2025

Roosevelt,

I have never tried this, but look at this to see if this is something that can help:

https://xlinesoft.com/phprunner/docs/about-date-control-api.htm

HJB 3/20/2025

https://xlinesoft.com/phprunner/docs/edit_as_settings_date.htm

Shows "allowed days", yet do not know whether it would blank
your calendar too.

fhumanes 3/20/2025

Hello,

The "BootstrapDataPicker" plugin that you can download from this URL https://fhumanes.com/blog/guias-desarrollo/plugines-de-phprunner/, you have the functionality you request.

Greetings,
fernando

Roosevelt author 4/5/2025

"Thank you all very much."