Questions tagged [2013]
For questions completely specific to all editions of SharePoint 2013 and **not past or future versions**
1,148
questions
43
votes
7
answers
126k
views
How to use Today and Me in Calculated column
I want to use a combination of Today and Me in SharePoint 2013. I am trying it in Office 365 it gives me the below error
Calculated columns cannot contain volatile functions like Today and Me.
Can ...
18
votes
1
answer
6k
views
What does this code getQueryStringParameter do?
I would like to know what this code does?
I am using it almost all the time but I don't know what it does.
function getQueryStringParameter(paramToRetrieve) {
var params =
document.URL.split("?")[1]....
11
votes
5
answers
9k
views
Can I add a start workflow link to a column in a list view?
I would like to add a link directly to a start workflow page in a column so that users don't have to go through several clicks to start a workflow. The link needs to change based on the item ID for ...
66
votes
1
answer
37k
views
CSOM vs JSOM vs SSOM vs REST
There does not seem to be any clear explanation of the different hosting types and technology abbreviations, so I decided to make a community post about the different types.
Perhaps there will never ...
14
votes
7
answers
38k
views
Enforce Drag and Drop documents to apply metadata
We have implemented an issue management system in SharePoint 2013 which provisions a page for every issue added to a specific list.
One of the Web Parts the automatically provisioned page contains ...
37
votes
2
answers
89k
views
How do I turn on SharePoint App store in SharePoint 2013
I am getting this message when I want to add a app:
Sorry, apps are turned off. If you know who runs the server, tell them
to enable apps.
25
votes
8
answers
34k
views
Client-Side Rendering/JS Link documentation?
Has there been any sort of documentation or anything like that released for SharePoint 2013 Client-Side Rendering/JS Link?
Anthing unofficial?
Any dates for when documentation might be released?
8
votes
4
answers
26k
views
Customize newform save button - Save and redirect to another form
What is the best way to add redirect function into the save button on a newform in SharePoint 2013.
When the user create a list item, he/she should be redirected to another form.
Is it possible to ...
31
votes
3
answers
80k
views
REST expand people column
I have a list with a people column called AssignedTo. I'm making a rest call:
.../_api/web/Lists/GetByTitle('listname')/Items?$expand=AssignedTo&$select=*,AssignedTo/Title
Which is successfully ...
19
votes
4
answers
67k
views
change the default tile size in Sharepoint 2013
Hello,
I create an app using the Promoted Links in Sharepoint 2013. I chose to do this because the feature has the awesome hover effect and is easy to customize the image.
The issue is that I have ...
17
votes
6
answers
37k
views
Sharepoint 2013 JS Link return default field rendering
I got a very strange problem.
I need to return default rendering for UserField (PeoplePicker) for some SP users with current user, and show read-only field with current user for others. In other ...
13
votes
7
answers
112k
views
How do I move SharePoint Lists and Libraries to another Site Collection?
I'm in the process of upgrading/cleaning up a large Web Application with a lot of Site Collections. On a SharePoint Foundation 2013 env.
I have found some questions about moving document libraries ...
8
votes
6
answers
30k
views
Checked null with dateTime in REST API SharePoint
I want to get all article pages which Article Date is not null. so I have try to do by this way.
var ArticlePageContentTypeID = "...
36
votes
6
answers
166k
views
REST API filter by start and end dates using 'today'
I'm new to filtering dates with REST in SP but am trying to do something like below but am not sure how to get today's date in as a variable into the request. I don't think I'm too far off so any help ...
15
votes
4
answers
58k
views
Minimum real world system requirements for SharePoint 2013
I've checked the SharePoint requirements here: http://technet.microsoft.com/en-us/library/cc262485.aspx which are apparently the "minimum" requirements, but I've seen some blog posts claiming to have ...
7
votes
2
answers
29k
views
Creating Folder using REST and JavaScript
I'm trying to create a Folder in a SharePoint Image library. I found an answer here but I can't seem to get it to work
var web = 'my relative path to the current web';
var lib = 'name of the image ...
1
vote
2
answers
7k
views
Content Type field on NewForm.aspx
I have a custom list and I am using content types to add items to the list. I am using OOTB forms for new and edit items. One field that I see on the EditForm.aspx is the one that I hope I get on the ...
34
votes
7
answers
140k
views
How can I learn the basics of SharePoint 2013 in a few days?
I have very little knowledge of SharePoint, and want to learn about SharePoint 2013. Most of the resources that I've found are either about what's new in 2013, or they have a bunch of links to ...
18
votes
3
answers
27k
views
JavaScript: How to reuse the "Working on it..." pop in
Sharepoint 2013: In have custom JavaScript code that makes Ajax calls. While loading I'd like to show Sharepoint's loading pop in:
That is the one that greys out the underlying page and centers a ...
11
votes
3
answers
5k
views
Re-order SP2013 views
How do I re-order the views? E.g. "To be invoiced" to appear where "Current invoice" appears
10
votes
4
answers
31k
views
How do I change the displayed view order for a list in SharePoint 2013?
I have a list and a requirement to show certain views by default. Thankfully, the default view always shows up first in the list, but after that it seems that everything is controlled alphabetically. ...
8
votes
2
answers
47k
views
The remote server returned an error: (403) Forbidden
I am developing a C# console application on my local computer running on Windows 8. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the web site name using web.Title ...
6
votes
2
answers
4k
views
Select All check-boxes in choice field on document library form using jquery
I have a document library form on which there are two multiple choice fields as shown in below image. Now when user select the option "Select All" in "Vertical" field all check-boxes in "Vertical" ...
6
votes
2
answers
8k
views
Export SharePoint online List all data to excel Programmatically using csom code
I want to export SharePoint Online List data programmatically using CSOM code in console application.
Can anyone send me CSOM code for the same.
2
votes
2
answers
7k
views
"Share with" e-mail invitations not being sent even though all other e-mails work in On-Premise SP 2013
We do not have on-premise SharePoint 2013 in production but the three dev farms that I have access to all have the same odd behavior. The majority of SMTP functions work correctly (adding to groups, ...
2
votes
3
answers
4k
views
jQuery accordion on Wiki page only works in edit mode?
I have an SP2013 wiki page that I want to use a jQuery accordion on. Just with some static content, not pulling any information from anywhere in SharePoint. I created the page, inserted a script ...
1
vote
1
answer
27k
views
Calculate number of working days between two dates
In SP2013 calendar list I have calculated column that calculates number of working days between two dates. It gives accurate number of working days until user puts weekend day as End date, than it ...
39
votes
5
answers
67k
views
How to get List by Url using SharePoint 2013 CSOM
SharePoint 2013 CSOM API contains the following methods for accessing List object:
ListCollection.GetById method - returns the list with the
specified list identifier
ListCollection.GetByTitle method ...
23
votes
4
answers
10k
views
Sharepoint Datepicker jumps to top in Chrome
I have an EditForm in which a Date field is located towards the bottom. When clicking the DatePicker button in Chrome, the form jumps to the top forcing the user to scroll to the bottom again. This is ...
22
votes
10
answers
29k
views
How can I disable the Document Library drag and drop function?
Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it.
We're using SharePoint online and I have amended the SharePoint out-of-the-box document ...
18
votes
2
answers
9k
views
SP.Utilities.Utility.SendEmail with additional headers [javascript]
Want to use the built in SendEmail with javascript and jquery. Found this code and got it working -- sends the email -- using the code below:
var appweburl = "https://example.com/site";
var ...
18
votes
3
answers
38k
views
Adding jQuery to master page
I am trying to customize a Sharepoint 2013 team site.
I created a copy of seattle.master and set it as default master page via context menu.
I added my custom CSS within head tages like so:
<...
18
votes
7
answers
112k
views
REST with $filter for List Items in Sharepoint 2013
Sharepoint 2013, REST API, native C++ application:
I want to get all Folder items from the list. Try
/_api/Web/Lists(guid'GUID')/Items?$filter=FileSystemObjectType+eq+1
and get HTTP 400 Bed request. ...
14
votes
5
answers
20k
views
How to Set Item Level Permission Using SharePoint Designer 2013 Work Flow?
Currently i'm trying to create a workflow in SharePoint 2013 workflow platform that sets item level permission, trying to set read item level permission to "XYZ" group in SharePoint 2013 workflow
...
13
votes
6
answers
25k
views
Paging using REST/OData with SP 2013
I'm trying to do paging on a document library (also trying this on a list) with SP 2013 using REST/OData but I can't seem to get the skipping of items working.
Here are some examples of URLs that I'm ...
13
votes
1
answer
5k
views
How can I get suffix matching in a search in SharePoint 2013?
I'm new to SharePoint 2013 and I'm quite puzzled, that it seems to be impossible to search for the middle part of a string.
Simple example:
I've added a lot of documents (PDFs, ...) from our Windows ...
13
votes
3
answers
25k
views
Check users group membership via REST API using AD-Groups in SP-Groups
I am aware that similar questions have been asked around here but none of them answers the part of AD-Groups that are used inside of SP-Groups.
I have several SP-Groups in my teamsite. I follow best ...
11
votes
2
answers
18k
views
Run any other javascript after the Display Templates have rendered the content
This is the issue:
I create a ContentBySearchWebpart, specified with my custom Display
templates.'
I want to run some other javascript code, after the Display
Templates have rendered the content
...
11
votes
8
answers
22k
views
SP.ClientContext is always "undefined" in JSLink functions
I'm trying to execute CSOM functions as part of a JSLink extension to override rendering of a Lookup Field.
Problem is every time I try to access SP.ClientContext it returns as undefined
I have ...
11
votes
1
answer
19k
views
Difference Between Sequential Workflow & State machine workflow?
What is the difference between Sequential Workflow and Stater machine workflow? What context should I take account to when choosing one of them?
10
votes
3
answers
15k
views
Get the ID and Name from multiple Client side People pickers to store in a list
I have a form which contains 3 client side people pickers, i use the following JS to produce the People Pickers
// Render and initialize the client-side People Picker
function initializePeoplePicker(...
10
votes
4
answers
92k
views
SharePoint 2013: "Find an Item" search box does not return results
We have 2 web applications, in one of the web application search is working properly and we are able to see search results from "Find an Item" box above the list name.
However in the other web ...
9
votes
1
answer
17k
views
JSOM - get listitem by file URL
Task
Short - Access item attribute from a picture library by picture url.
Long - When editing a pagelayout and an image is added to the page, the image's description should be loaded. This is ...
8
votes
4
answers
22k
views
Combine REST query "GetItems" action with OData $filter parameter
I'm able to call GetItems through REST by using an example by Erik C. Jordan.
Now I'm trying to combine this with a simple OData $filter parameter.
I have a REST query like this (jQuery on SharePoint ...
6
votes
1
answer
16k
views
How to get all items with a specific content type using REST Api
There are five Custom Lists in a site collection, all have same content type. I would like to get all items from those five lists using rest api. Is there a way to get all items from all lists having ...
6
votes
1
answer
13k
views
Reading web part properties using JavaScript Object Model in SharePoint 2013
I am using the below code to read the properties of a web-part using JSOM. While i can read the properties of the web-parts that are there on the current web part page, I would like to know of a way ...
6
votes
2
answers
22k
views
Save site as template in SharePoint 2013
I have one SharePoint 2013 site, which I need to setup on another server.
In 2010 there was an option to save site as template in site actions, which is not there in 2013.
How can this be achieved? ...
6
votes
4
answers
3k
views
Can force the "Title(linked to item with edit menu)" column inside my list view to reference to another URL
I am working on a custom list, and inside the list view i am showing the Title(linked to item with edit menu) column. currently when users click on this column they will be redirected to the item ...
6
votes
1
answer
2k
views
enforce "reset all subsites to inherit this site master page" using CSOM
I am able to change the master page using the below code
var web = ctx.Web;
var masterPageUrl = String.Format( "{0}/_catalogs/masterpage/filename.master", ctx.Web.ServerRelativeUrl );
web....
5
votes
1
answer
12k
views
Update folder name using REST API
I am using REST to update folder name via sharepoint apps. My code as follows:
executor = new SP.RequestExecutor(appweburl);
executor.executeAsync({
url: appweburl + "/_api/SP.AppContextSite(@...