”“SnippetElement”为空或不是对象”提交 InfoPath 2010 表单时出错
我有一个从 2007 版本升级的 InfoPath 2010 Web 表单。 2007年的版本运行良好。
提交表单后,它会保存到 SharePoint 2010 文档库 - 保存正确。
但是,我收到 JavaScript 错误“'SnippetElement' 为 null 或不是对象”。我已经检查了所有提交选项,它们看起来不错。甚至多次重新发布表格,但无济于事。
有人以前遇到过这个错误,可以告诉我如何阻止它吗?
I have an InfoPath 2010 web form that was upgraded from a 2007 version. The 2007 version worked fine.
When the form submits, it saves to a SharePoint 2010 document library - it is being saved correctly.
However, I get a javascript error, "'SnippetElement' is null or not an object". I've checked all my submit options and they look OK. Even republished the form several times to no avail.
Anyone had this error before and can tell me how to stop it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何看到这篇文章的人,我最终解决了这个问题(尽管我认为 Infopath 或 SharePoint 中存在导致该问题的错误)。
我的表单以及此后我发现的其他几个表单都使用“提交”操作将数据发布到列表中。
通过将表单更改为使用配置为使用数据连接提交的“规则和自定义代码”操作,JavaScript 错误将不再发生。
这些形式在 2007 年发挥了作用,但显然在 2010 年发生了一些变化,破坏了它们。
For anyone who comes across this post, I eventually solved the problem (though I think there is a bug in Infopath or SharePoint that caused the issue).
My form, and several others I have found since were using a "Submit" action to post the data to the list.
By changing the form to using a "Rules and Custom Code" action that is configured to submit using a data connection instead, the JavaScript error no longer occurs.
As these forms worked in 2007, clearly something has changed in 2010 that breaks them.