PreSaveAction is not working in SharePoint office

2019-09-07 11:09发布

问题:

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!

回答1:

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.