javascript - 在 sharepoint spservice 中保存数据时如何检查验证是否失败

标签 javascript jquery sharepoint spservices

我正在使用以下代码将项目保存在共享点中。

 $().SPServices({
operation: "UpdateListItems",
async: false,
batchCmd: "New",
listName: "Share Point List",
valuepairs: [["Title", fnameVal], ["LastName", lnameVal], ["Gender0", genderVal], ["DateOfBirth", birthDateVal], ["Email0", emailVal], ["City", cityVal], ["Country", countryVal]],
completefunc: function (xData, Status) {
alert("Data Saved! and Please check your List");
}
});

在保存数据时它工作得很好,但是当它不保存以进行某些验证时,我仍然会收到警报消息。如何检查验证是否失败以及哪些字段验证失败?

最佳答案

您的答案在此 SPServices 论坛帖子中:http://spservices.codeplex.com/discussions/393036

我相信 Marc 有一个问题,需要在未来的某个版本中将我在该线程中发布的方法添加到 SPServices 中。

关于javascript - 在 sharepoint spservice 中保存数据时如何检查验证是否失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26956489/

相关文章:

c# - 以编程方式搜索特定的 SharePoint 用户

JavaScript 在 AJAX 加载的 DIV 中不起作用

javascript - Safari 中的 HTML5 视频纹理

jquery - 我的响应式幻灯片只显示第一张图片

SharePoint:从 ContentType 注销 EventReceiver 时出错

c# - InfoPath C# 中的权限类

javascript - 在 JavaScript 中,我如何测试在给定时刻是否有任何 AJAX 调用在后台运行?

javascript - 无法在 Angular 4 中遍历 Map

jquery - 无法使用ajax将json数据解析为html列表

javascript - 如何使用 jQuery 进行星级评分?