In the last article, we saw how to Insert the JS link on the default NewForm and EditForm.JS. With some curiosity, I was about to add the Same JS file to any page apart from the default PageType option shared by Patterns By Practices.

By default, PNP Supports the following Page Types.

Invalid = -1,

DefaultView = 0,

NormalView = 1,

DialogView = 2,

View = 3,

DisplayForm = 4,

DisplayFormDialog = 5,

EditForm = 6,

EditFormDialog = 7,

NewForm = 8,

NewFormDialog = 9,

SolutionForm = 10,

PAGE_MAXITEMS = 11

I wanted to extend this to some other Files also. i.e., Coming up with an Extension Method similar to the PNP, which will get any URL within that list and the JS Link.

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to articles@sharepointpals.com in a word document.