Hot answers tagged

12 votes
Accepted

Make custom field required in list

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. ...
user avatar
  • 1,119
10 votes
Accepted

Modified vs Last_x0020_Modified

Modified: Identifies a field that contains the last modified date and time information that is associated with the specified SharePoint Foundation object. Last_x0020_Modified: Identifies a field that ...
user avatar
  • 2,250
8 votes
Accepted

Opening a document in a SharePoint 2013 document library in a new tab (using code)

A little JavaScript employing jQuery does the job just perfectly. $(document).ready( function () { // has to be on an interval for grouped doc libraries // where the actual links are ...
user avatar
  • 7,855
7 votes

How to display item count of specific folder in list

SharePoint contains a hidden Site Column called ItemChildCount. This Site Column stores the calculated number of child items that the folder contains. Note: It does not include the number of ...
user avatar
5 votes
Accepted

Unable to manage Item Level permissions

I ran into this issue myself just recently. I found a related thread over at Microsoft's forums: https://social.technet.microsoft.com/Forums/office/en-US/c9703b7b-a719-48b4-9350-9d9a75ac62e1/list-...
user avatar
  • 334
5 votes
Accepted

How to add list item inside a folder using REST API

The REST API does not have complete support for folders - particularly when it comes to working with list items. While it's quite possible that there is a way to get this to work using the REST API, ...
user avatar
  • 11.7k
4 votes

Hide button "Delete Item"

You can add these lines of CSS using a content editor webpart to hide the delete button. /* For Dispform.aspx */ a[id="Ribbon.ListForm.Display.Manage.DeleteItem-Medium"] { display:none; } /* For ...
user avatar
4 votes
Accepted

Custom ECB-Menu Item which copies the Link of the document into the Clipboard

I had a similar requirement sometime ago. Due to browser compatibility issues, I ended up using window.prompt, shifting the control of the copy/paste functionality over to the user: window.prompt ("...
user avatar
  • 5,361
3 votes
Accepted

Get folder item number. REST API

After the first query that creates Folder object you could perform the second REST request: http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/listItemAllFields ...
user avatar
3 votes

Manage Multiple ItemUpdating Event Receivers On List

You can make use of the SequenceNumber property that is associated with the SPEventReceiverDefinition object. https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverdefinition....
user avatar
  • 28.2k
3 votes

Deleted items are still showing on Search result after Full Crawls or incremental Crawls

Search uses Delete policy for access denied or file not found When the crawler encounters an access denied or a file not found error, the item is deleted from the index if the error was encountered ...
user avatar
  • 28.2k
3 votes

Drop Down Site column has no value in edit form

I have seen this happen before (when a programmer without SharePoint knowledge 'fixed' a problem with imported/pasted data and emptied/deleted the existing definition of DropDown values The ...
user avatar
3 votes
Accepted

REST: set ReadSecurity / WriteSecurity (Item Level Permissions)

It is possible to set or update ReadSecurity or WriteSecurity using REST API and JSOM both. REST API Request body { "__metadata": { "type": "SP.List" }, "...
user avatar
3 votes

Delete item post closing date in SPS 2013 List

You can implement OoB Information Retention Policy where you can have the Modified Date greater than or equal to Closing Date. Item should be deleted.
user avatar
  • 1,746
3 votes

Delete more than 1 List item based on Closing date in SPS2013 List

You can set up retention policy to start a workflow when any condition (in your case closing data is today) is satisfied. In that workflow you can set step to delete the item. This way multiple items ...
user avatar
3 votes

SharePoint list, restrict view of particular item within the list

Use Audience Targeting. That's the Out of Box feature available to meet your requirement. Create two separate views. In one view you give access to all groups while for other view you edit the page ...
user avatar
  • 1,746
3 votes
Accepted

Get version of item given url powershell

This gives you the string label of the version: $objFile.UIVersionLabel This gives you the Major version: $objFile.MajorVersion This gives you the Minor version: $objFile.MinorVersion Edit: The ...
user avatar
  • 3,536
3 votes

How to add list item inside a folder using REST API

As Rob very correctly mentioned, REST API doesn't have complete support for folders. But using the old /_vti_bin/listdata.svc, you can create a list item and add it inside a folder. For that, you need ...
user avatar
  • 30.3k
3 votes

Item Level Permissions and Lookup Columns

As OOTB solution, I suggest doing the following: Create a view for each Garage (Filtered by Garage ID/Name) Create a Promoted Links list. Garage Name, Graghe View URL In Promoted Links list, add a ...
user avatar
2 votes

Create same Items every morning

A timer job would work great for your situation. Timer jobs are background processes that are run by SharePoint. As the name implies, these can be ran on a schedule, such as every day. This link ...
user avatar
  • 5,700
2 votes

Item Level permissions - trouble when using "Create items and edit items that were created by the user "

You can grant another person permissions to view all items in the list by granting that person Manage Lists permission on your list.
user avatar
  • 4,046
2 votes

How to know old id of item in recycle bin?

SPRecycleBinItem.ID is not same as deletedItem.UniqueID. I have checked it. So you can't use them to identify deleted item in recycle bin. You can expiriment with DirName and LeafName, but there at ...
user avatar
2 votes
Accepted

Request failed. Column 'Project Phase' does not exist. It may have been deleted by another user

Try this function fetchProjectData(projectName, callbackOnSuccess) { var clientContext = new SP.ClientContext("path to site"); var oList = clientContext.get_web().get_lists().getByTitle('...
user avatar
  • 28.2k
2 votes

make custom list item column unrequired (non-required)

A more recent solution for a SharePoint 2010 website: Select 'All Site Content' (also via Site Actions link at top left) Select your document library Ribbon Bar 'Library Tools', select 'Library' tab ...
user avatar
  • 21
2 votes
Accepted

What are the main items that a SharePoint Intranet Site should have?

If you're setting up an Intranet, I would highly recommend looking into the principles of Information Architecture. I've found O'Reilly's Information Architecture for the World Wide Web to be a ...
user avatar
  • 131
2 votes

What are the main items that a SharePoint Intranet Site should have?

The content and structure depends on what the end user wants. Below are some points you should consider What kind of content will you have on sites? How will your users find and access content? What ...
user avatar
  • 28.2k
2 votes

Unique ID in SharePoint

Yes it will be the unique ID. Whenever you add an item to the list a new ID will be assigned to it. There is nothing like reusing ID. When the Document ID service is first enabled, new documents in ...
user avatar
  • 28.2k
2 votes

Infopath how to get curent element ID

You can do it using following steps In SharePoint, create a form library to submit your forms to. In InfoPath, create a new (browser-compatible) InfoPath form template. Add a Text Box control to the ...
user avatar
  • 28.2k
2 votes

Why is "Event: When an Item is changed" triggered when on all items in the list?

Wait for Event in List Item: Used to wait for a new item to be created or an item to be changed. So if you use this action, it will be trigger whenever any item is changed in list. If you want to ...
user avatar
  • 2,135
2 votes

Hide button "Delete Item"

You can have a custom permission level without delete permission. Assign the users/groups of this list this new permission level. Then in the workflow you can use the impersonation step to still ...
user avatar

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