Booking field is empty when editing a submission

Created on 28 February 2025, about 2 months ago

Problem/Motivation

When editing a submission of a webform with a date_time booking field (webform_booking type), its value does not appear in the edit form. Additionally, if the submission is saved without modifying this field, its value is lost instead of being preserved.
While debugging, I noticed that $form['elements']['date_time']['#default_value'] contains the correct value. However, it is not displayed in the form when editing the submission.

Steps to reproduce

1. Create a webform with a date_time field of type webform_booking.
2. Submit a response to the form.
3. Edit the submitted response.
4. Notice that the date_time field is empty.
5. Save the response without modifying the field.
6. Verify that the field's value has been lost.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024