A very interesting article about creating new predefined groups for SharePoint 2013
If you are in the SharePoint consulting business, by no doubt you have already heard the following customer requirement:
We need a SharePoint field, which allows the user to pick one of the few predefined groups we have defined there
That’s not possible out of the box, although possible with some custom development. There is many different options here, but the one I recommend and I find it to be a ‘best practice’, is the Field JSLink approach.
Below I will show you how to implement a JSLink, which changes the People & Groups field from this:
to this:
Ok, first thing first, you probably already have somewhere in your project the definition of the Field. Something like:
You need to add JSLink attribute to it. So:
JSLink="~site/SiteAssets/jquery-1.11.3.min.js|~site/SiteAssets/JSLink/MyCompany.JSLink.Fields.GroupsAsDropdownTest.js" />
You will find the full source code of the JSLink at the bottom of the post, but let’s quickly go over it.
View original post 205 more words