- Issue created by @alex20001111
- 🇵🇹Portugal rfmarcelino
@alex20001111 you should be also seing the calendar as in the project description.
The text field will also be displayed to users able to edit swebform submissions, but not for visitors.
Please make sure your settings are in the correct format as explained in the tooltips.
If it's still now working, please add a screenshot of your settings so I can try to replicate it. Thank you for the quick response!
I have attached a screenshot with the field settings.- 🇵🇹Portugal rfmarcelino
It worked on a clean install:
The difference I'm seing is in the date formats. Should be DD MM YYYY and you're using MM DD YYYY
I changed the date format as per your instructions, but it still doesn't work. I've reinstalled the module, but it's still the same; it appears as a simple text format. I also encountered some errors indicating that it couldn't find the specified date.
- 🇵🇹Portugal rfmarcelino
The date format is still not right.
If you want, export your configuration, edit the element part of the webform.webform.booking.yml and import it again:
elements: |-
book1:
'#type': webform_booking
'#title': appointment
'#start_date': '2024-03-04'
'#end_date': '2024-03-22'
'#excluded_weekdays':
Mon: 0
Tue: 0
Wed: 0
Thu: 0
Fri: 0
Sat: 0
Sun: 0
'#time_interval': '7:00|18:00'
'#slot_duration': '15'
'#seats_slot': 2You shoud be able to just select the dates in the calendar, but there might be a setting altering the default date format
- Status changed to Closed: cannot reproduce
9 months ago 11:40am 5 March 2024 I have identified the issue and understand why I received that error and why the calendar with time slots did not appear. I had Drupal installed on localhost/mydrupal, and the module only accepts localhost. When the JavaScript tried to fetch the data and open slots from the link http://localhost/get-slots/booking/123/2024-03-22, I actually had http://localhost/mydrupal/get-slots/booking/123/2024-03-22, so the issue was related to path and routing.
Please be aware of this situation and correct it if you wish. Once again, thank you for the quick response, and the module is exceptionally good.- 🇧🇪Belgium laysiv
I have the same issue. Is there a solution to fix this in localhost while developing?
- 🇵🇹Portugal rfmarcelino
Hi @laysiv
This should work in all environments.
The calendar and slots are generated with JavaScript based on your element configuration.
If it's not appearing, try to install the latest version (or even dev version) and check your browser console for errors.