How to make a checkbox? if (checkbox) set to enable filter by field

How to make sure that if (checkbox) is set, then enable the filter by “sport_id” field and only those lines are displayed where in the “sport_id” field there is ‘1’. Oracle Database.
In detail please

You want details? Send some details first, are you using gridview for results? you have searchModel for that checkbox? share some code, of view and controller for example