Add a clear button that clears all smartdate widget fields (dates, times and HIDDEN end dates)

Created on 3 July 2024, 6 months ago

Problem/Motivation

When clearing a SmartDate Widget one has to remove each value of each field individually. Which is not very convenient.
When the end date of a date range is set to hidden one can only remove the visible fields. Upon saving an error aborts saving and the hidden end date is displayed - which has to be cleared again manually.

Steps to reproduce

Proposed resolution

Add a clear button that clears all smartdate widget fields (dates, times and HIDDEN end dates).

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Closed: duplicate

Version

4.1

Component

Code

Created by

🇦🇹Austria maxilein

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

Comments & Activities

  • Issue created by @maxilein
  • Status changed to Closed: duplicate 6 months ago
  • 🇨🇦Canada mandclu

    This module's project page links to a project that can be used to remove rows. Also, there is work underway in 📌 Refactor suppression of extra input row Needs review to refactor the way the Smart Date widgets are coded, in the hopes that using more of core's methods will allow them to use the Remove buttons that were recently added in core.

  • 🇦🇹Austria maxilein

    Thanks. I tried that.
    The linked module did not work. I could not find out why. Apparently it works only for recurring dates or multiple value field settings.
    But I am using one core date range field.

Production build 0.71.5 2024