KoolReport's Forum

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

Koolreport Laravel Select #2086

Open Shawn Beckwith opened this topic on on May 16, 2021 - 1 comments

Shawn Beckwith commented on May 16, 2021

What am i missing to keep the last option selected when submitting a form? After submit, the selected value does not stay populated

Select::create(array(
                                "name"=>"plant_region",
                                "dataStore"=>$report->dataStore("PlantRegions"),
                                "defaultOption"=>array("--"=>""),
                                "dataBind"=>"plant_region",
                                "attributes"=>array(
                                    "class"=>"form-control",
                                ),
                                "clientEvents"=>array(
                                    "change"=>"function(){
                                    console.log($(this).val());
                                    }",
                                )
                            ));
KoolReport commented on May 17, 2021

May be you miss the binding of inputs to the report parameters.

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
None yet

None