New answers tagged

0

Found my mistake... The sequence (AddControlGroup([..], [..], Sequence))has to be the same value in each form. So for my example that'd be: ribbonCustomAction.AddControlGroup(actionGroupDefinition1, SPRibbonIds.ListForm_Display.Id, 3002); ribbonCustomAction.AddControlGroup(actionGroupDefinition1, SPRibbonIds.ListForm_Edit.Id, 3003); ...


2

The mistake you are doing is you are using List's UserCustomActions, but here your ScriptLink is the part of SPWeb or SPSite. So you code need to be like UserCustomAction Scriptaction1 = clientContext.Web.UserCustomActions.Add(); instead of UserCustomAction Scriptaction1 = collUCA.Add(); Refer this


0

Subscribing to the click events is not a good idea here, for many reasons (including: you'd have to consider all buttons user can press to validate the page (in ribbon, in the page...), key events, and also your Handler may happen after the SharePoint handler). The good practice here, to intercept the save action and possibly cancel it, is to define a ...


0

The custom JS is most probably causing issues, it may be using same name of variables. I would open the page in webpart maintenance mode and delete\disable that web part. To open in webpart maintenance you need to append the url of the page with {yourUrl}?contents=1 REf: https://support.office.com/en-us/article/Open-and-use-the-Web-Part-Maintenance-Page-...


0

This certainly seems to be a Browser related issue. which version of IE are you using? Try changing the IE to different versions from developer tool and check if you still encounter the error. Also try loading the page in Chrome. There is some javascript object which seems to be deprecated in current version of browser.



Top 50 recent answers are included