You have to paste this code in Javascript tab that you can find on "CSS and Javascript" option (see the photo)
<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()==6){alert('Please select a date that is different from Saturday or Sunday!');...
How to change it for saturday and Sunday, please ?
<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){alert('Please select a date that is different from Saturday or Sunday');returnfalse;...
I successfully imported events from a Google calendar, but the process does not seem to also bring in the details such as descriptions or locations. Is there a way to do this, or am I missing something?
Would simply blocking the dates in your form not be enough, since the dates are blocked you will not be able to schedule a second appointment on the same date? This implies that you will only accept appointments through your form.
Right now the Google Calendar plugin is there to submit data from the form to Google.
For a new website I need to create a booking/appointment tool, currently RSformsPRO can do this for 95%, the only thing missing, is to block times that are already "booked" in Google Calendar.
Looking at the Google API, this should be possible.
So, any chance of adding the functionality to GET data from Google Calendar and not only POST? Or is there a workaround?
RSJoomla! is releasing its products only in English language, the rest of the language files are donated by the community and might not be complete. You can try creating / completing your own language pack by referring to this article.
I use form 1 to pass some user entered info to form 2. This form checks the database and if the info is correct prefills the form fields with all the users data. If I use a calendar field their birthday i.e 1960-12-12 is prefiled correctly, using a birthday field I only get the year i.e 1960 - month - day.
The data is passed to the $val by
I have used the script as per the link and it works very well except for the Calendar and the Date and Time picker. Those details are not saved and when the data is retrieved they are blank. Everything else seems to work perfectly.