Use form validation instead of custom js for exclusion dates and time intervals

Created on 9 June 2024, 17 days ago

Problem/Motivation

At the moment the exclusion dates and time intervals are validated via a custom js script which uses an alert as error message.
Besides the example exclusion dates are hardcoded.

Proposed resolution

Use element_validate in the WebformElement instead and create example dates dynamically.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Corn696 Flensburg

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

Comments & Activities

  • Issue created by @Corn696
  • Issue was unassigned.
  • Status changed to Needs review 17 days ago
  • πŸ‡©πŸ‡ͺGermany Corn696 Flensburg

    Should consideration be given to using translated weekdays for the time intervals?
    If no, it should be mentioned that it is necessary to use English weekdays.

Production build 0.69.0 2024