Hello Everybody,
I'm new to InfoPath as a matter of fact I just started using this application this month. I use InfoPath2007 and code in C#. I have added a button on my form that adds rows to a repeating table. I also added rules to this button to validate other fields on the form for example... show messages when some required fields are blank. Now the problem is whether the validation results with error or not, the button click code still gets fired. What I want is for the button-click code not to get processed when there's any validation error. How do I prevent the click code from doing its thing when there's any validation error? Should I resort to coding the validation routine instead of using rules to validate fields? Any help would be greatly appreciated.
Thanks,
Rick