Unable to add more than 1 number of values in Webform

Created on 14 June 2025, 2 months ago

Problem/Motivation

Unable to set a Flatpickr date field on a webform with more than 1 value. The 'allowed number of values' option does not appear.

Steps to reproduce

  1. Install Webform and Datetime Flatpickr module
  2. Create or edit an Webform
  3. Add a Flatpickr Date element
  4. Under the 'Title' field, see that there is no 'Allowed number of values' dropdown as there was before

Proposed resolution

This bug seems to appear in versions 3.0.5 and 3.0.4: https://www.drupal.org/project/datetime_flatpickr/releases

But this issue ( https://www.drupal.org/project/datetime_flatpickr/issues/3519445 🐛 Date range field with unlimited cardinality duplicates on edit of entity Active ) seems to be the most recent that involves allowed values, fixed in 3.0.5.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada trevorkjorlien

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

Comments & Activities

  • Issue created by @trevorkjorlien
  • 🇭🇺Hungary nagy.balint

    Originally the webform component was based on the webform date component, but it had a lot of unnecessary fields and settings.
    I was unaware of that feature, I will have to check what can be done.

  • 🇭🇺Hungary nagy.balint

    Would this patch work?

  • 🇨🇦Canada trevorkjorlien

    Tested the patch, and it now lets me add multiple or unlimited dates. Thanks!

    However, some useful things were removed in a previous release. For instance, in the 'Advanced' tab on the Webform Flatpickr Date field, there are no longer 'Multiple settings' options. Screenshots attached.

    At least for my use, it doesn't let me turn off sorting, add/remove elements, etc...

    I recommend we add those settings back in.

  • 🇭🇺Hungary nagy.balint

    Not sure if the following patch is enough, but we will see.

  • 🇮🇳India divya.sejekan

    Applied add-multiple-3530184-5.patch , Patch gets applied cleanly and Multiple option is enabled.
    But i could not see any changes in Advanced section tab.
    Testing steps :
    1. Install Webform and Datetime Flatpickr module
    2. Create or edit an Webform
    3. Add a Flatpickr Date element
    4. Under the 'Title' field, see that there is no 'Allowed number of values' dropdown as there was before

    As per the issue description and title the issue is resolved . RTBC++

    Keeping this in review for further review on code

  • 🇨🇦Canada trevorkjorlien

    Applied add-multiple-3530184-5.patch and can now see a 'Multiple settings' section under the 'Advanced' tab.

    Now I can enable and disable all those options that were there before.

    For me, this is approved.

  • 🇭🇺Hungary nagy.balint

    Thanks!

    Sorry #6, but that comment was a bit confusing to me so I cannot add that as a credit.

    • nagy.balint committed 9bbcdc80 on 3.0.x
      Issue #3530184 by nagy.balint, trevorkjorlien: Unable to add more than 1...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024