0

I am trying to add a multiple date field (unlimited cardinality) in my custom module configuration form.

$form['holidayForm']['holidays'] = [
        '#type' => 'date',
        '#multiple' => TRUE,
        '#title' => $this->t('Holidays'),
        '#default_value' => $config->get('holidayForm.holidays'),
    ];

As you can see, I have added the #multiple property but I still get a single field

enter image description here

Is there a different property that I needed to add.

EricLavault
  • 12,130
  • 3
  • 23
  • 45
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51

0 Answers0