infopath表单共享点列表中特殊字符的验证规则 [英] validation rule for special characters in infopath form sharepoint list

查看:74
本文介绍了infopath表单共享点列表中特殊字符的验证规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们在使用InfoPath修改SharePoint列表表单时遇到了问题。当用户在文件名中添加了带有特殊字符的附件时,每当我们尝试保存列表项时,我们都会收到一条错误消息(这可能是
课程的预期)。

Recently we ran into a problem when we modified a SharePoint list form with InfoPath. When users added an attachment with special characters in the filename we would get an error message whenever we would try to save the list item (this was expected off course).

< a href ="https://bdequaasteniet.files.wordpress.com/2013/12/infopathwarning.png">

虽然该消息明确指出无法提交表单,但该项目仍然已添加到列表中(没有附件) 。这导致了重复的列表项,这在这种特殊情况下是个大问题。

Although the message clearly states that the form could not be submitted the item was still added to the list (without the attachments). This led to duplicate list items which was a big issue in this particular case.

我们添加了规则表达式  not(xdUtil:Match(string(../ my):附件),"[A-Za-z0-9 \-\\。。] *"))无效。请建议

We added rule the expression  not(xdUtil:Match(string(../my:Attachments), "[A-Za-z0-9\-\s\._]*")) which did not work.Please suggest

推荐答案

您好,

如果文件名包含,则无法将文件上传到SharePoint特殊字符。

There is no way to upload file to SharePoint if the file name contains special characters.

所以你必须重命名文件并上传它。

So you have to rename the file and upload it.

你可以阅读这篇文章,了解更多关于文件夹和文件名的限制:

You could read this article to know more about folder and file name restrictions:

https://collabshow.com/2012/06/04/sharepoint-2010-file-name-length-size-and-invalid-character-restrictions-and-recommendations/

最好的问候,

Michael Han

Michael Han


这篇关于infopath表单共享点列表中特殊字符的验证规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆