Nathan Explosion Posted January 14, 2023 Posted January 14, 2023 I am trying to do a "From/To or Permanent" type of field. When saving, the following... $form->add(new \IPS\Helpers\Form\DateRange('daterange', array('start' => NULL, 'end' => NULL), TRUE, array('unlimited' => 1, 'unlimitedLang' => 'permanent'))); ...results in... I should be able to overcome it with some custom validation, but would be good if it could work as-is (you don't appear to use a DateRange with a required = true anywhere in the code I have availability to)
Recommended Posts