• 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: Help about Calendar in RSForm! Pro

Help about Calendar in RSForm! Pro 10 years 3 months ago #30285

Hi everybody,

(sorry for my english, I'm a french user :laugh: )

RsForm work great, but I have a little problem with the calendar.

I would like to be able to desactivate in the calendar the saturday and sunday, and a selected date too (for example 31.12.2015).

I found two tutorial : one to desactivate the saturday and sunday, and an other to desactivate a selectedDate.
But when I try to merge the two scripts, he did not work !

Did you see something wrong in this script ? :

 <script type="text/javascript">
function rsfp_onSelectDate(selectedDate, 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(selectedDate == "31.12.2015") 
  {
    alert("We do not shipping this day");
    return false;
} 
 
if (d.getDay() == 0 || d.getDay() == 6) {
alert('Please select a date that is different from Saturday or Sunday!');
return false;
}
 
else {
return true;
}
}
</script>


Thank you for your help !
Gauthier
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!