What im trying to do is i have a repeating secton, that one of the
fields is a primary contact checkbox, so if someone selects this, then
a new contact section is created(a new repeating section) and i want
code to check and automaticaly disable the primary contact checkbox so
that there isnt a conflict of two primary contacts
Greg Collins [InfoPath MVP] - 30 Jun 2006 20:46 GMT
If you add conditional formatting to the check box to tell it to disable if another node has a certain value -- then you can use code to set that other node's value. The other node can be in a secondary data source so that it does not get saved with the maind DOM.

Signature
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )