KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How do I make DateTimePicker linked together? #100

Open Robert opened this topic on on Sep 2, 2017 - 2 comments

Robert commented on Sep 2, 2017

Just get the KoolReport Pro Developer License, one quick question: I use the Inputs package, I want to set from date and to date but they should link to each other so that the from date must be before to date. How can I do that?

KoolReport commented on Sep 2, 2017

Oh that's simple. You only need to link the name of two DateTimePicker:

<?php DateTimePicker::create(array(
    "name"=>"fromDatePicker",
    "maxDate"=>"@toDatePicker",
));?>
...
<?php DateTimePicker::create(array(
    "name"=>"toDatePicker",
    "minDate"=>"@fromDatePicker",
));?>
  
Robert commented on Sep 2, 2017

Thank you very much!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
wiki
help needed

Inputs