The form won't submit if the user enters a time out of the interval/step.

Created on 30 June 2023, over 1 year ago
Updated 9 October 2023, about 1 year ago

Problem/Motivation

When setting a time step for a date field in a webform, this one won't submit unless the time interval is met and since the user can input the time manually, it doesn't really matter if we use the Jquery time picker that will display a dropbox with 15 minute interval time.

There is no error being shown, just a reload of the page without any information, I couldn't find anything in the logs too.

Steps to reproduce

  • Create a webform
  • Add a Date/time field
  • In time settings, pick a time element and set the time interval of your like
  • Go to the webform view
  • Change the time to anyone out of the interval that you set. (e.g. if you set an interval of 30, set any time that's not :00 or :30)
  • Submit the form

Proposed resolution

Round the time to the expected interval every time the user inputs a time out of it.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

6.2

Component

User interface

Created by

🇪🇸Spain alexortega_98 Seville

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

Comments & Activities

Production build 0.71.5 2024