Error having more than one smart date field in the same form.

Created on 2 October 2025, about 19 hours ago

Problem/Motivation

When two or more date fields are added to the same form, but with different formatters, the smart date library for each element does not load properly.

Steps to reproduce

  1. Add 2 Smart date range fields to the same content type.
  2. Save all default field settings.
  3. In the content type display form, configure the fields as follows:
    • The first with the Smart date | Inline range formatter. In the widget settings:
      • Uncheck "Hide the end date field unless it's different from the start date."
      • Check Provide a checkbox to make an event all day.
      • Check Remove any seconds, if present, from existing values.
      • Check Use an overlay to display duration options.
    • The second as Smart date | Date-only range. In the widget settings:
      • Uncheck "Hide the end date field unless it's different from the start date."
      • Uncheck Provide a checkbox to make an event all day.
      • Check Remove any seconds, if present, from existing values.
      • Uncheck Use an overlay to display duration options.
  4. Now navigate to the form to add content of that content type and check the display.
  5. To see the differences, return to the form display, hide one of the date fields, show the other, and vice versa.

Example:

Displaying the two fields:

Hiding field 2:

Hiding field 1:

🐛 Bug report
Status

Active

Version

4.2

Component

Code

Created by

🇪🇸Spain javier_rey

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024