Add custom JS for edtiform.aspx

Hi,

I want to add custom JS in edit form.aspx. I have checked lots of example but that will not fulfill my requirement. Big constraint, I have use this custom JS for more than 1000 libraries. I can't edit all forms to add JS. I have added JS using CustomAction. this function works in other pages but not on editform.aspx.

I want this for SP Online.

Please suggest.

July 26th, 2015 2:12am

CustomAction is according to Microsoft the way to do this. Also see their example here:

https://github.com/OfficeDev/PnP/tree/master/Samples/Core.EmbedJavaScript

That it does not work in EditForm.aspx seems a bug to me. You could raise it there.
Alternatively, you could add the JS reference to your masterpage. However, custom masterpages is advised against.

Free Windows Admin Tool Kit Click here and download it now
July 26th, 2015 8:49pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics