How to bypass form validations in infopath 2007 forms? - InfoPath Dev
in

InfoPath Dev

How to bypass form validations in infopath 2007 forms?

Last post 12-09-2008 12:00 AM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-08-2008 11:45 PM

    How to bypass form validations in infopath 2007 forms?

    Hi,

    I have a form with clear and cancel button. And that form have many validations. but when i click on clear or cancel buttons it checks validation. i want to excute button click event without validations. how can i do that.

    Please help me for this.

    Pundya 

      

  • 12-09-2008 12:00 AM In reply to

    Re: How to bypass form validations in infopath 2007 forms?

    Hi,

    You can delete the validations in the button click event. Use the following code lines in the button click event.

    if (thisXDocument.Errors.Count > 0)

    {

    thisXDocument.Errors.DeleteAll();

    }

    Swathip
    www.ggktech.com
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.