How to avoid/suppress the infopath error or warning message in browser enabled forms. - InfoPath Dev
in

InfoPath Dev

How to avoid/suppress the infopath error or warning message in browser enabled forms.

Last post 05-05-2009 08:43 PM by Abhi_Bhat. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-23-2008 04:09 AM

    How to avoid/suppress the infopath error or warning message in browser enabled forms.

    Hi,
     
    I have created a infopath form, it is web enabled. Upon submit of the form, I invoke the webservice. This is done through Tools-->Submit Options --> (Data connection thru web service, and set the Custom Message for both Success and Failure.). This Infopath form is published and it is published into the sharepoint site thru, "Manage Form Templates" in the Sharepoint Central Administration Site, and placed under "Form Templates Library" in that site.
    When the user access the form through browser, upon clicking the submit button the webservice is getting invoked. Assume in case if the webservice is not running or not able to invoke, then the infopath shows the warnning message like below.

     

    Warning
    Powered by:
    Some rules were not applied.
    Click Continue to resume filling out the form. You may want to check your form data for errors.
    Click Start Over to load a new copy of the form.
    Hide error details
    Problem in connecting with WebService.
     

     

    Is there any way we can avoid this warning message. I donot want to show the Infopath warning error message to the end user. Instead I wanted to show the custom error message to the end user, when any problem occurs upon clicking of the submit button.  How to handle these kind of errors.
    Any help would be greatly appreciated.

     

     

     

    Krishnan
  • 10-02-2008 02:08 AM In reply to

    • ravig
    • Top 500 Contributor
    • Joined on 06-21-2008
    • Posts 27

    Re: How to avoid/suppress the infopath error or warning message in browser enabled forms.

    Hi Krishnan,

    Use Try-Catch blocks to get exception and show your custome message for that exception.

    Ravi G
  • 05-05-2009 08:43 PM In reply to

    Re: How to avoid/suppress the infopath error or warning message in browser enabled forms.

    Try-catch required C# code. What if we do not want to use code.How can we do it in infopath without C# code ?

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