I am using XmlFormView embedded in .aspx, and I am trying to run my own custom validation rules when a user presses a "tab" button that will switch views. When the user presses the "tab" button, it posts back using submitToHost to call our validation, then switch the views if validation passes. My problem is the built-in InfoPath validation pop-up get's flagged and none of my code/rules are able to run because of this. I need to suppress this message or clear all errors from the FormErrorCollection (this doesn't seem to work as it looks like you aren't able to access this collection to delete them). Is there any way around this?
Thanks in advance.