Hi abs(Ming),
You can do this with rules. In the Designer, double click on the button and click on Rules. Add a rule to set a fields' value and then add an xpath that refers to the pre-existing checkbox value. Should be straightforward.
Patrick Halstead [InfoPath MVP]
InfoPathDev
Patrick Halstead
Project Manager at Qdabra