Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you open an InfoPath 2007 form and then click Submit: "'undefined' is null or not an object"

View products that this article applies to.


Consider the following scenario:
  • You create a form in Microsoft Office InfoPath 2007. This form contains a Submit button.
  • In the Submit Options dialog box, you enable the Show success and failure messages option.
  • In the Rules for Submitting Forms dialog box, you include a Switch views action.
When you open this form in the browser and then click Submit, nothing happens. Additionally, you receive the following error message:
'undefined' is null or not an object
Note To see this error message, click to select the Display a notification about every script error check box in the Internet Options dialog box in Windows Internet Explorer. To do this, start Internet Explorer, click Internet Options on the Tools menu, and then click the Advanced tab.

↑ Back to the top


This problem occurs because a dialog box is waiting for a user action. However, InfoPath is trying to switch views.

↑ Back to the top


To work around this issue, follow these steps:
  1. Start InfoPath 2007, and then open the InfoPath form in design mode.
  2. Double-click Submit.
  3. On the General tab, click Submit Options, and then click Advanced.
  4. Click to clear the Show success and failure messages check box, and then click OK two times.
  5. Save the InfoPath form.
  6. Republish the form template to InfoPath Forms Server 2007.

↑ Back to the top

Keywords: KB926270, kbprb, kbexpertiseinter, kbtshoot

↑ Back to the top

Article Info
Article ID : 926270
Revision : 3
Created on : 11/3/2006
Published on : 11/3/2006
Exists online : False
Views : 376