• 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: limit calendar to slect only certain week days

limit calendar to slect only certain week days 11 years 7 months ago #19036

  • info0648
  • info0648's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Is it possible to make only specific weekdays select-able in the calendar, e.g. only Wednesdays-Saturdays of each week?

Thanks in advance for any help!
The administrator has disabled public write access.

Re: limit calendar to slect only certain week days 11 years 7 months ago #19045

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello ,

You will need to modify/add Javascript to your form in order to achive this , example :

www.rsjoomla.com/support/documentation/v...election-event-.html
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Re: limit calendar to slect only certain week days 11 years 6 months ago #19638

Hello,

I understand that you have the new function but:

First: How do you know what day it is (monday, tuesday etc) if you click a date in de popup calender?
Second: How do you test if the day is only a monday or wednesday?
Third: I have two popup calendars on my form but the checks should only be on the second popup calendar.

Somebody knows how to do that?

Thanks
Last Edit: 11 years 6 months ago by ed.jm.bos.
The administrator has disabled public write access.

limit calendar to slect only certain week days 11 years 6 months ago #20090

  • WarnerP
  • WarnerP's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I'm looking for this as well. Any solution?
The administrator has disabled public write access.

limit calendar to slect only certain week days 10 years 1 month ago #27107

  • draklems
  • draklems's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Old thread but I'm looking for the same type of solution. Is there any way to not allow the user to choose weekends in the calendar?
The administrator has disabled public write access.

limit calendar to slect only certain week days 8 years 5 months ago #33261

Same here... I am looking for how to do this as well...... any ideas folks (I'm not a coder)

thanks,
Mike
The administrator has disabled public write access.

limit calendar to slect only certain week days 9 months 4 weeks ago #42851

  • gregvan
  • gregvan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Is there a way to control 2 calendars days on the same form eg

<script type="text/javascript">
jQuery(document).ready(function(){
myDateTPicker = RSFormPro.jQueryCalendar.calendars[4, '4_0'];
myDateTPicker.callbackSelectedDateTime = function(selectedDateObject, calendarInstance, calendarDateObject, input, inputFormat) {
weekDay = calendarDateObject.getDay();
if(weekDay == 0 || weekDay == 3 || weekDay == 6){
//0 = Sunday, 1 = Monday and so on...
alert('Please select another day other than Wednesday, Saturday or Sunday');
return false;
}
}
});

jQuery(document).ready(function(){
myDateTPicker = RSFormPro.jQueryCalendar.calendars[4, '4_1'];
myDateTPicker.callbackSelectedDateTime = function(selectedDateObject, calendarInstance, calendarDateObject, input, inputFormat) {
weekDay = calendarDateObject.getDay();
if(weekDay == 0 || weekDay == 1 || weekDay == 2 || weekDay == 4 || weekDay == 5 || weekDay == 6){
//0 = Sunday, 1 = Monday and so on...
alert('Please select another day other than Wednesday, Saturday or Sunday');
return false;
}
}
});
</script>
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!