I upgraded an InfoPath 2007 form to 2010. Users were getting a javascript error when submitting the form. The error was “’SnippetElement’ is null or not an object.”.
I did a few things to try and resolve the error. Recreated all my data connectors, re-published the form several times, all to no avail.
Finally, I ran the javascript debugger in IE and found that the error related to a problem with some code in core.js. There was a function that was trying to get the ‘SnippetElement’ from the submit button on the form.
I’m not sure what that means, but I checked the submit action for the form and found that “Show the Submit button in both the Ribbon and the Info tab in the InfoPath Filler.” option was checked on. I don’t recall seeing that in 2007 so it must be new for 2010. Turning the option off resolved the error.