Closed (fixed)
Project:
Webform Booking
Version:
1.1.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2024 at 16:45 UTC
Updated:
14 Oct 2025 at 11:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
duckydan commentedI am running into the exact same thing.
Drupal 10.3.6
PHP 8.3.6
MySQL 10.11.8
Bootstrap 5.3 theme.
Comment #3
duckydan commentedFound this in the logs:
Warning: Undefined array key "#default_price" in Drupal\webform_booking\Plugin\WebformElement\WebformBooking->prepare() (line 400 of /var/www/html/drupal/web/modules/contrib/webform_booking/src/Plugin/WebformElement/WebformBooking.php)Comment #4
rfmarcelino commentedHey @robbienlive and @duckydan
Thank you for your feedback.
To debug your issue, make sure you're using the latest version and if you have any errors on the browser console.
The calendar widget is created with JavaScript. If it's not appearing, it might be a conflict with something else.
The warning:
Warning: Undefined array key "#default_price"
should not appear in the latest version, but it's just a warning and shouldn't have any impact.
Comment #5
duckydan commentedThanks for the quick response.
I had uninstalled it and was looking to build something. I put it back and made sure it was the most recent version (1.1.1).
Nothing in the console at all.
I am now seeing the calendar, but it is not showing any available dates and defaults to October. Selecting November switches it immediately to October again. There are no dates in October that should be selectable, obviously.
Webform field:
Console:
Recording of behavior is also attached.
What else do you need?
Comment #6
rfmarcelino commentedThe problem seems to be the start and end date that should be like this:

The module expects the format day-month-year and on your config the end date is invalid
Comment #7
duckydan commentedThanks.
Why does the picker enter the wrong data? It won't let me enter the date manually either. Is there some date/time format setting?
I tried manually entering it, and then picking from the data picker. Both formatted it mm/dd/yyyy
If you hard-coded some date format, maybe those two fields should be a text field and not use a picker that does not support it.
I can record how it works if that would help.
Comment #8
duckydan commentedComment #9
robbienlive commentedHey,
I updated everything to the lastest version, and still have the problem. I get some errors in my console about dates. The only thing I changed, was the title.

Besides that, when I want to open settings, it gives me an error (500).

In the drupal error log I could find these error messages:
Comment #10
rfmarcelino commented@duckydan
That is part of your browser using your regional settings. Since I'm in Europe, I used our usual date format. We could eventually have something to detect the user's settings and account for it, but for now, it's working as designed.
@robbienlive some of the warnings you're getting are from webform (a separate project) and 500 is a server error that can be caused by multiple things (resources, stack version or modules,...)
Not much info in your message can point to an issue /solution.
---
If you encounter an issue that you think might be related to this project, try to replicate it in a clean install.
If the problem persists, share your webform element configuration so I can recreate it and fix it.
Comment #11
duckydan commentedOK, thanks for the response.
No one outside of a region that uses dd/mm/yyyy can use it, as designed.
Please consider adding that to the description or readme to save other people's time.
Comment #12
rfmarcelino commentedComment #13
drupgirl commentedNot to open a closed issue, but the reported issue hasn't been resolved.
The calendar and slots that are show in the image on the project page are not rendered. Also, as reported, the Month filter does not work. There is no real indication on how to get this to work. The readme and project page do not give any clear settings to guide people who may be interested in using this module.
Since you say that the user must enter a text value for the date in a specific format, you may want to include that text somewhere.
This module has potential, but it the UX needs work so that users can either click on the slots that you show in your picture or use a date picker. Please consider making this module usable to the regular person who is used modern interfaces.
Comment #14
rfmarcelino commentedHi @drupgirl,
Yes, I'm aware that the issue was not fixed.
The module was developed considering the format the whole world uses except the US (dd-mm-yyyy).
I'm exploring options to support the US format mm-dd-yyyy, but it's not a trivial fix that will take some time and I need to manage the contribution hours between different projects and priorities. Contributions are always welcome 🙂
Until then, a section 'Limitations' was added to the project description and suggested by @duckydan
Comment #15
rfmarcelino commentedHey,
Just made an attempt to fix the issue for US users.
Try the latest dev version
composer require 'drupal/webform_booking:1.1.x-dev@dev'and set your default country on the settings page to US (/admin/config/services/webform_booking)
Comment #16
rfmarcelino commentedComment #17
rfmarcelino commentedComment #18
kateva14 commentedI'm having the same issue. All that displays is one text input box. I've researched every fix but I can't find anything that is incorrect. I have it set for one day, with 10 minute slots from 9 - 12.
I just installed the module so it should be the latest version. I have all the required modules installed. In searches there's mention of selecting a slot type, but that option does not appear within Form Builder.
Any thoughts on what I might be doing wrong would be appreciated.
Kathy
Comment #19
joekers@kateva14 are you based in the US? It might be the same issue as we're experiencing with timezones - see #3531803: Current month and month translation and #3525113: Europe Timezone past time calendar vanishes
Please drop a comment there if so.