There are multiple ways and also it depends weather you have one or multiple checkboxes. Here is the one way... Create a bool variable and make it true when onChanged Event called in Checkbox or to toggle you can use isChecked = !isChecked; With this you can easily toogle with values and pass the final value when form submitted