Pjax form submit - reset inputs on back?

I have the Pjax widget enclosing a form. The form uses GET, so the URL bar is automatically updated with the query params.

This works well, including back button navigation. The only issue I am having is that my form inputs are not being reset after clicking back. For example, if I have ticked some checkboxes then submit the form, the results are shown. I then click back and the previous results are now displayed. However the checkboxes are still ticked.

How do I fix this?


Can you share any of your sample code? that will helpful to understand the RC.


Happy Coding.


S.A. Johnson

( Yii Developer )