In a button's clicked event code, I set the value of a data field - isValid - based on the validity of multiple fields in the form. For the same buton, a rule is set to close the form based on the value of the data field isValid. But the Close event does not fire even though the form is valid. Am I missing anything here? The changes done be the code is not affecting the Rule.
Env: Visual Studio 2008, MOSS 2007, InfoPath 20007