I had a different solution.
In changed event of the checkbox i controlled if the value is true, then set a value in the xml which i control when submitting the form.It works fine.Remember to set "always" ıf the postback options of the checkbox