• 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 dates in Calendar

Disable dates in Calendar 4 years 4 months ago #39636

Hi,
Under "Controlling the Date and Time Picker" I found the following code:
<script type="text/javascript">
jQuery(document).ready(function(){
  var myDisabledDates = ['02/23/2016','02/24/2016','02/27/2016'];
  //the dates you want to disable
  myDateTPicker = RSFormPro.jQueryCalendar.calendars[25]['myDateTimePickerNameHere'];
  //replace 25 with your form ID and the date time picker name.
  myDateTPicker.calendarInstance.setOptions({
    disabledDates: myDisabledDates
  });
});
</script>

I have changed the formid and calendar names.

Unfortunately, the code does not work in my environment.
Exception => jQueryCalendar.calendars ist not defined

if I change that RSFormPro.jQueryCalendar in RSFormPro.YUICalendar than i get a exception:
Uncaught TypeError: Can not read property 'setOptions' of undefined

Can i disable some Days in my Calendar?
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!