• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Disable a period in the calendar

Disable a period in the calendar 8 months 2 weeks ago #43580

Hello,

How can I disable a period in the calendar en preventing that users can choose these dates in the calendar

I have looked in the forum and on the rsform pro tips but can't find a solution for this.

Best solution is to combine it with the javascript that I already have in this calendar.
<script type="text/javascript">
  function rsfp_onSelectDate(date, type, args, calendar)
{
var dates = args[0];
var date = dates[0];
var year = date[0], month = date[1], day = date[2];
 
var d = new Date(year, month-1, day);
if (d.getDay() == 0 ||d.getDay() == 1 || d.getDay() == 2) {
alert('alert text here! ');
return false;
} else {
return true;
}
}
</script>

Thanks for helping.

Kees
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!