PreSaveAction在SharePoint Office 365中不起作用(2016) [英] PreSaveAction is not working in SharePoint office 365 (2016)

查看:107
本文介绍了PreSaveAction在SharePoint Office 365中不起作用(2016)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SharePoint Office 365(2016),并且在以新项目形式添加自定义验证时遇到问题.
这里的场景很复杂,我无法通过使用Validation设置/公式来处理.因此,我选择了自定义JavaScript代码.
由于应单击保存"按钮并执行验证,因此成功调用了PreSaveAction方法,但仅在经典体验"中有效,但是当用户更改为新体验"时,由于表单HTML结构的更改而不会调用该方法.
是否有人知道如何解决此问题? 预先感谢!

I am working on SharePoint office 365 (2016), and facing issue while adding custom validation in new item form.
Here scenario is complex, I can't handle by using Validation setting/formula. So I have choose custom JavaScript code.
As validation should be perform on click of Save button and PreSaveAction method successfully called but only in 'Classic Experience' but when user changed to 'New Experience' it won't call because of change of HTML structure of the form.
Does any one have an idea how to fix this issue? Thanks in advance!

推荐答案

如文档

As stated in the documentation here jslink is not yet supported in the new experience. In order to support your customization you'd have to disable it.

这篇关于PreSaveAction在SharePoint Office 365中不起作用(2016)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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