Start/End Date error messages

Created on 30 September 2024, about 2 months ago

Problem/Motivation

Duplicate error messages are added to all fields in the fieldset when submitting a node edit form with an end date before the start.

This also shows the hidden duration field with error messages.

Steps to reproduce

  • Create the smart date field.
  • In the field settings set the allowed duration values to 'custom' and default duration to 0.
  • Fill out a node edit form and all mandatory fields.
  • Add an end date that is before the start date.
  • Save the node edit form.
  • User is presented with error messages on each of the fields in the smart date fieldset.

Proposed resolution

Only show the error message on the end date field as it is where the error originates and it makes it clearer to the author.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.1

Component

Miscellaneous

Created by

🇬🇧United Kingdom williamsona

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024