The RSForm!Pro plugin offers the possibility to add a booking calendar to any RSForm!Pro form in a simple way. A calendar panel and checkbox list do give the visitor a field where they can make a reservation on any kind of appointment. Use cases like a private yoga lessons or room reservations can be implemented easily.
Behind the scenes is the DPCalendar event system used. Like that has the admin full power of a stable event manager with all the DPCalendar configuration options, menu items, plugins and modules.
Before the plugin can be used, the site admin has to install it and on Extensions => Manage the System - RSForm!Pro DPCalendar plugin must be enabled. As a first step, a calendar needs to be created in DPCalendar where the reservations should be filled in.
Once the calendar and form have been created and the plugin enabled, open the RSForm!Pro form in the back end. A new field in the left sidebar can be found, under the "Advanced Form Fields section", named "DPCalendar Reservation". Note that this field can be set up in the same ways as any of the other RSForm!Pro fields.
To create a field, click on the "DPCalendar Reservation" field type. A popup window will appear where the attributes of the DPCalendar reservation RSForm!Pro field can be entered. The following list documents attributes.
//<code> return \Joomla\CMS\Factory::getUser()->name; //</code>
RSForm!Pro allows to use the field values in submission mails like "{Times:value}" when you have a field with the name "Times". Beside the normal values from RSForms!Pro, DPCalendar offers the additional placeholders:
When the form is opened on the front end, either by menu link or integrated in an article, then are the booking calendar and linked options displayed. On the right side are the options rendered the visitor can select from. When there is an event already at that time range, then the option is disabled. The booking calendar takes any event into consideration, not only the selected options from previous submissions.
DPCalendar compares the start and end date of existing events, when there is an event found which overlaps with a slot, then the slot is not selectable. Does a slot start or end where a new one ends or begins, then it is possible to select it. So for example when the admin has defined the following three slots:
And the visitor selects the middle slot, then it is still possible to select the slot one or three. The blue cells in the calendar do highlight the dates where some selections are possible, while the red ones do highlight the fully booked days. The green one is the currently selected day and the white ones are the days where no selection was made. If different colors are needed, then the following selectors are available to style them differently by CSS:
Once the visitor posts a submission all the submission data is stored in the description of the event. Like that can an admin easily work on further callbacks and is well prepared when the event happens.
Comments (0)