return the checkbox value on query