• 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: Validate that selected calendar date is a Saturday

Validate that selected calendar date is a Saturday 10 years 11 months ago #27517

Is it possible to validate that a date selected from the pop up calendar is a Saturday and refuse any entry that isn't?

Thanks
Paul.
The administrator has disabled public write access.

Validate that selected calendar date is a Saturday 10 years 11 months ago #27519

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
<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() !== 6) {
alert('Please select Saturday!');
return false;
} else {
return true;
}
}
</script>
Insert the above code in the CSS and Javascript tab. For more information about how you can control the calendar read here and here
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

This message has been removed by user's request. 10 years 3 months ago #30205

  • d8ac5d4dd8a5b6b44ff432ea81741921@RSJOOMLA_DELETED
  • d8ac5d4dd8a5b6b44ff432ea81741921@RSJOOMLA_DELETED's Avatar
This message has been removed by user's request.
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!