Handle/Clear built-in InfoPath 2010 schema validation error pop-up - InfoPath Dev
in

InfoPath Dev

Handle/Clear built-in InfoPath 2010 schema validation error pop-up

Last post 04-23-2012 01:37 PM by robwett. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-23-2012 06:31 AM

    Handle/Clear built-in InfoPath 2010 schema validation error pop-up

    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.

  • 04-23-2012 07:27 AM In reply to

    Re: Handle/Clear built-in InfoPath 2010 schema validation error pop-up

    You could set the IsDirty flag to false ...
    Patrick Halstead
    Project Manager at Qdabra
  • 04-23-2012 01:37 PM In reply to

    Re: Handle/Clear built-in InfoPath 2010 schema validation error pop-up

     Patrick, thank you for the quick response. I'm looking further into this solution, but having a little trouble getting a reference to the current XDocument in code-behind. If possible, could you point me in the right direction?

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.