KoolReport's Forum

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

How to reset the default binding params of input fields on page reload. #1425

Open Tech Apps opened this topic on on May 6, 2020 - 3 comments

Tech Apps commented on May 6, 2020

Hi Team,

I want to reset the values of input fields (daterangepicker, select2 ,etc) to default param values. but cant able to achieve it.. Kindly suggest a solution for this.

KoolReport commented on May 7, 2020

Could you please describe your use case. Is it correct that you want a Reset button, when click it will post back to server, reloading whole report with default parameters.

Tech Apps commented on May 7, 2020

Yeah,, you are correct.. i need the Reset button.. to post back to server, reload whole report with default parameters.

suggest a solution

KoolReport commented on May 13, 2020

Sorry for my late reply. It is very simple that you create an empty <form> with an submit button named it as "Reset". When this button is click, the empty form is posted. The report will not receive any parameters posted so it will turn to use the default parameter you set in defaultParamValues() method.

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
help needed

Inputs