0
votes
1answer
25 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
0
votes
0answers
12 views

Sharepoint 2013 : Create a directory structure on a domain's file server

I would like to implement a HTML form in a SharePoint 2013 page, which can create a directory structure (or copy an existing one). The main issue is that the directory structure should be ...
1
vote
0answers
19 views

Cannot update allowMembersEditMembership

I can't seem to update the setting on a group to allow members to edit members. This is my code: function setGroupsMembershipEditingMode(uri) { var context = new SP.ClientContext(appweburl); var ...
0
votes
2answers
30 views

Accessing a SharePoint 2013 checkbox with JavaScript?

It seems the way a checkbox renders in SharePoint 2013 server has changed from the way it was rendered in 2010. When I view the source through the browser I see... <!-- FieldName="MyCheckboxes" ...
0
votes
0answers
11 views

Conditional formatting in display template in sharepoint 2013

I have a Content Search Web Part (CSWP) that lists two different content-types from a different application. I would really like to be able to make the CSWP show content-type A in green and ...
3
votes
2answers
78 views

REST API along with startswith and tolower function method in SharePoint 2013

I would like to bind all users into textbox autocomplete event. I done with below script but it is consider case sensitive expression while searching the results. $("#txtselectuser").autocomplete({ ...
0
votes
1answer
46 views

O365: Unable to get property 'get current' of undefined or null reference

I'm on SP2013 in an O365 environment. I am trying to pull some data from a list and render that data using the Google charts API. I am doing this in a content editor web part that points to an HTML ...
0
votes
1answer
21 views

Issue on Chrome - Javascript list view

I have an issue with this simple Javascript code into a SharePoint list view page. <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script> ...
0
votes
1answer
43 views

Check it in error sp.ribbon.js

Recently I've started getting this error when trying to 'Check it in' while looking at a page. The error in the JavaScript console is: SCRIPT445: Object doesn't support this action File: ...
0
votes
0answers
16 views

Is there a JavaScript event that fires when the yellow message bar is shown?

I want to call a function when the DeltaPageStatusBar is displayed.
1
vote
1answer
56 views

Updating document metadata using Javascript or jQuery

I have a large, complicated script that copies selected documents from Library A to Library B when a user clicks a button. At the end of the script (as a final step), I'm calling the three functions ...
1
vote
2answers
63 views

How to recreate a people picker (or anything else that can autocomplete names)?

I have a page on which I have a drop-down list with the names of all the groups that I created in SharePoint. When a user picks a group from that list, it will display extra information on the page ...
2
votes
0answers
55 views

How to trigger the click event of the SharePoint OOTB list's new form Save button?

I have custom list in which there are two mandatory fields, and I want to ask the user if he wants to again enter the new item after one item is created. I searched over the internet and found this ...
0
votes
1answer
34 views

Get user Login from User or Group field

I have a list with User og Group field. I've retrieved item from it, now I need to get user's Login. By reading User or Group field I can get only user id and account name. here's my code: var ...
0
votes
0answers
48 views

2013: load custom “clienttemplates.js” file

Requirement: I want to replace the file clienttemplates.js found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS with a custom version. I couldn't find the ...
1
vote
1answer
33 views

How do you get the default label of a term through JavaScript?

Most of this code comes from an answer to a previous question. I'm trying to take it one step further now and get the actual default label string. var context = SP.ClientContext.get_current(); ...
1
vote
2answers
62 views

How can I get information about a term through JavaScript?

What I want to do is something like: var myTerm = getTermInfo(55c6801f-78b3-485f-b811-530bec1961e9);
0
votes
0answers
11 views

How to add a webpart zone using JavaScript in SharePoint 2013

Let say I can manipulate DOM to add extra DIVs to page. I need to know if it's possible to use JS to convert these divs to web part zone to display a button "Add a Web Part" (like the ones in Blank ...
0
votes
0answers
9 views

Can you use the HasRights() function in SharePoint 2013, if so how?

I am looking to limit the display of content on a custom page in SharePoint 2013. I wish to hide or display some s based upon the user's permissions. The function HasRights() seems to be what I need. ...
0
votes
0answers
23 views

405 Method Not Allowed when creating new item in SharePoint list from remote site

I want to create a simple webpage with a form that can create new items in a SharePoint list. I want to make this as a remote site that just connects to sharepoint. Since I had a problem with REST ...
0
votes
0answers
18 views

Make Sharepoint 2013 forms read only

I have a need where I need to add a "SUBMIT" Button to sharepoint New and Edit forms along with the default Save and Cancel Buttons. On click it should assign read only permissions to the item to the ...
1
vote
1answer
64 views

Changing client web part properties Title/Description with diffrent languages

We want to change our client web part Title and Description depending on Supported locales(languages). The Validation checklist for apps: ...
0
votes
1answer
47 views

Pure clientside webpart for Office365

I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution). It's necessairy this ...
0
votes
0answers
58 views

Client people picker on Sharepoint View Custom Forms

Can someone tell me how to have the default client people picker control with the auto complete functionality on the custom view form in Sharepoint 2013? Once the default view form is customised, the ...
0
votes
0answers
42 views

SharePoint 2013 List View App Part - Display all views by default

I would like to display all of the select-able views. By default it shows only the first three views and then a "..." which can be clicked to display the rest. I thought I had stumbled across this at ...
0
votes
1answer
103 views

SharePoint Provider-hosted app: Can't call REST or use JSOM

I have an AngularJS web app that is registered as a Provider-hosted app on an on-premises SharePoint 2013 site (not Office 365 or SharePoint Online). The Provider-hosted app is hosted on a separate ...
1
vote
0answers
29 views

SP13: Blank Space on Pages

I am recently changed the master page to have the page content to be centered. My focus for the centering was on the home page that successfully centered. However, navigating to the other pages the ...
1
vote
1answer
33 views

Script Returning �

I use a lot of JavaScript in SharePoint, but today I came across a problem that I do not understand. Every time I use accents in a script such as in an alert, it returns the following strange symbol: ...
0
votes
1answer
32 views

SP13: Remove Page Horizontal Scroll Bar

I have made changes to the master page on a SP13 page. An horizontal scroll bar appears at the bottom of the page. The following piece of code I have that adjusts the height of the scroll bar, but I ...
1
vote
1answer
44 views

How to get current search query in a search page

In a SharePoint 2013 publishing site, I have a custom search page. This page can be reach from the search box in the master page. It lands on : http://server/pages/search.aspx?k=myquery, which is ...
1
vote
1answer
81 views

Onchange People Picker

I have a problem changing a people picker in a custom form. Need when writing or changing the value in the people picker I know, I'm using javascript using jquery. Already tried using this code: ...
1
vote
1answer
68 views

Retrieve Fields/Column Names of a Sharepoint List using Javascript

<script type="text/javascript"> function retrieveFieldsOfListView(){ var clientContext = new SP.ClientContext.get_current(); var web = clientContext.get_web(); var list = ...
0
votes
0answers
22 views

Upload Status Indicator Web Part

Being an SharePoint Admin and not a Developer how would I accomplish the following: A client access a site where they are able to download and upload documents. The business requirement is to create ...
0
votes
1answer
57 views

Moving Scroll Bar to Top not working in SharePoint 2013

We are using below code on our web application master pages inside SharePoint 2003 to make scroll bar position always on top. function MoveUp() { if ...
3
votes
1answer
147 views

How do you properly write to a managed metadata column from JSOM? (SharePoint 2013)

I am trying to write the value of a managed metadata column across several documents in a document library at once using JSOM, but for some reason the way I'm trying only writes the value to the first ...
1
vote
3answers
120 views

What is the correct way to reference javascript in Sharepoint 2013?

I have found conflicting sources on linking/referencing JavaScript to a SharePoint .HTML Masterpage in SP2013. Out of the box, SP2013 instructions from Design Manager interface are to Use this ...
2
votes
1answer
26 views

How can you share script members between control template and item template

I'm developing two custom display templates (Control and Item template) and I'm wondering if it is possible to share script members between these two templates, e.g. if I add something like var bar = ...
0
votes
2answers
46 views

SP13: Master Page Centering

I am working changing the master page to center the content in the middle of the page. For an example, see the homepage to www.topsharepoint.com. To accomplish this task I have changed the master ...
0
votes
1answer
68 views

Based on URL how to set Global navigation nodes (CSOM) node as active - javascript

I want to use the same navigation everywhere (mysite, teamsites ..) So I'm fetching the (managed navigation) global navigation by csom in the masterpage. The global navigation is only going to show ...
0
votes
1answer
201 views

SPServices GetListItems GroupBy

I am using the SPService, the method GetListItems. I need to groupBy the result (distinct). This is my code: var CamlQuery = '<Query><GroupBy Collapse="TRUE"><FieldRef Name="nameA" ...
1
vote
2answers
270 views

How to handle multiple calls to executeQueryAsync synchronously?

I have a custom list to which I am applying JSLink to NewForm.aspx. The list where JSLink is applied is : XXX and in the JSLink I am querying data to YYY from the list YYY there are two fields ...
0
votes
1answer
27 views

Get the title and/or link of the parent website in javascript in SP2013

Is it possible somehow in JavaScript to acquire the title and/or link of the parent of my current site? I know that I can create a client context with a specific URL, but is it possible to do this ...
2
votes
1answer
58 views

executeQueryAsync fail on Chrome

I am using SP.ClientContext (JS library) to update some item's fields. It is working fine on IE but on Chrome I get this error (displayed as alert): Request Failed, status code 0 text '' The ...
3
votes
1answer
430 views

JSOM - get listitem by file URL

Task Abridgment - 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 ...
0
votes
0answers
81 views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the ...
4
votes
3answers
159 views

JavaScript is breaking my theme in SharePoint 2013

I am having an unusual problem. I have a site in SharePoint 2013 I just stood up, and starting to experiment with JavaScript and jQuery. I am using one of the OOTB themes, not ready to monkey around ...
2
votes
2answers
288 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 ...
0
votes
1answer
56 views

Modal Dialogue Behavior On Close

I'm using a modal dialogue to display list data formatted by DataTables. Within the table are links to another modal dialog to edit items in the first modal dialog's table. I'm turning on the save ...
3
votes
1answer
37 views

Script editor webpart ribbon problems

I added a script editor web part (javascript code) to a view page (/Forms/AllItems.aspx). After that I can not see anymore the File and List category in the ribbon bar. I read somewhere that ...
0
votes
1answer
75 views

Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using: var ...