Hi Captain78,
Welcome to InfoPathDev.
I'm attaching a sample form with rules which sets a field's value and has a formatting rule which hides its self if a certain condition has been met. Please check the button rules on the form and let me know if this approach works for you.
Regards,
Don Stephen Lambatin / Support Engineer
Qdabra Software