Tag Info

Hot answers tagged

3

Yes you can do this Using jQuery to dynamically change this on document.ready event Recommended way - Using JSLinks Option #2 you can use JavaScript to specify how a field should be rendered. For more check this article. http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013


3

Thats possible: create a new calculated column in the list/library. In the calculated field copy and paste between the quotes "=IF(HOUR(Modified)>12,"PM","AM")" Save. Go to view and and group by date and second by this calculated field. Then column


1

Based on previous answers the approach I can think of is to add an event receiver which checks who the user is as denies the change if they are not allowed. You could use the SPListEventReceiver FieldUpdating event. https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splisteventreceiver.fieldupdating(v=office.14).aspx You would need to ...


1

It seems your template is not applied since clienttemplates.js library is not yet loaded when SPClientTemplates.TemplateManager.RegisterTemplateOverrides function is invoked. Instead of (function () { var overrideContext = {}; overrideContext.Templates = {}; overrideContext.Templates.Fields = { 'Status': { 'View': overrideTemplate ...


1

In order to make a lookup column work for a user with contribute permission level on one list, that same user need to have at least read permission level on the list to lookup. Probably, this is a system list which is intended to be used for functionality rather than content. To save admins from unintended edits, the permission inheritance was broken on the ...


1

If you are using SharePoint on-premises you can't create the library and the custom columns in a single call using the REST API. You need to make a call to create the library and then make subsequent calls to create each of the custom columns. The REST API in SharePoint Online now supports batching so you can create the library and the custom columns in a ...


1

I don't think you can create fields (columns) in a list/library at the same time when creating it as the REST endpoints for list/library and fields are different. So you will have to first create your document library and then add fields to it. The Fields REST API reference on MSDN is a pretty comprehensive guide on how to create different type of fields. ...


1

I'm not sure if a column can be created at the same time, but perhaps this example will guide you on how to create a column: // Create a new list field function createField() { var fieldName = document.getElementById("createlistfieldname").value; var executor; // Initialize the RequestExecutor with the app web URL. executor = new ...


1

Go to Advanced Settings and Enable the Allow management of content types. Now you will see the content types associated with the list under the Settings section. Click on Item. Select the column. Check the Required radio button.


1

You may have to do this in Powershell. $site = Get-SPSite -Identity "http://sharepoint/" #change $web= $site.OpenWeb() $spList = $web.GetList("/Lists/CustomList") #change $field = $spList.Fields["Location"] $field.Required=$true $field.Update() $web.Dispose()



Only top voted, non community-wiki answers of a minimum length are eligible