1
vote
1answer
17 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
7 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
5 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
10 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
14 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
0answers
22 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
40 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
23 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
24 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
69 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
25 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
32 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
27 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
35 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
58 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
61 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
20 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
44 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 ...
0
votes
0answers
20 views

Set spesific web application url on site logo - javascript

Is there a way to fetch the URL on a specific web application with JavaScript? I've got several environment, and each of those have several web application running ex: Environment 1 www.domain.com ...
3
votes
1answer
102 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
91 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
25 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
42 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
49 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
119 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
161 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
25 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
47 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 ...
2
votes
1answer
233 views

CSOM - 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
54 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
142 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
187 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
49 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
34 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
66 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 ...
2
votes
1answer
96 views

SharePoint 2013 and javascript

What is meaning of OnDemand scripts and what is not-on-demand scripts? In SharePoint 2013, when do we use SP.SOD.executeFunc and when to use ExecuteOrDelayUntilScriptLoaded ? What is best practice?
1
vote
1answer
72 views

Return CurrentItem from context.Templates.Item JSLink

Any ideas on how to return from the Custom Item method when using JSLink (as if it was never called)? I want to do a check in this method and hide the row if the condition fails. I know I can do a ...
0
votes
0answers
16 views

Create a discussion list type based on the new display js file

Can anyone help me with how to create a discussion list type based on a new display js file? I do not want to modify the OOTB JS files of SharePoint.
1
vote
1answer
111 views

SharePoint Online 2013 Page Code Embed and Javascript - output disappears

I noticed I can't embed inline javascript in an SPO 2013 Web Part page, but can reference a library. I'm outputting a table from that js. If I put alerts that table displays but then disappears ...
1
vote
1answer
49 views

“Working on it” message - Handle event and hide some blocks

I edited master page, added some custom blocks. My problem is when opening the web site I see my footer and header blocks. How can I hide these blocks when "Working on it" block appears? Can I ...
1
vote
1answer
92 views

get_defaultViewUrl () not working in SP Hosted app

I am trying to get the default view url of a list in SP hosted app. Below is the code i am trying, on execute success method. spListobj.get_defaultViewUrl(); It is returning me this error : The ...
2
votes
1answer
108 views

SPFolder.MoveTo functionality in JavaScript

In SharePoint 2013 I'm trying to add a script to move a folder from it's current location to a different parent folder while keeping the rest of the file structure the same. I am adding a button to ...
2
votes
3answers
159 views

How to put an iFrame with a QueryString appended in its src in the ContentEditorWebPart?

I have a SharePoint site Page in which i need to put an iFrame element to display a web page.To achieve that I wrote some html and javascript within CDATA tag inside the Content section of a ...
2
votes
1answer
118 views

Get MySite URL using ECMA

I am trying to get the URL of the logged in user's Personal site from another site collection. I am working on SharePoint 2013 online and using ECMA.
0
votes
0answers
45 views

How to pull property and auto-verify/populate?

In SP2010, there was a "Department" field where I had to extract the department of a user whose name was already verified/resolved in people picker. The code was: var invokeAfterEntityEditorCallback ...
1
vote
2answers
712 views

Autopopulate form fields based on selection in people picker column using JavaScript

I have a custom list where user fills out profiles of others. There is a People picker column for "Name of employee" and when the user selects the person(people picker) in the form, other details ...
0
votes
0answers
56 views

Permission Denied JavaScript Error

I am attempting to place page viewer web parts on one of my firm's intranet SharePoint sites. For some reason, the page that is loaded through the web part won't function properly. The page itself ...
2
votes
2answers
198 views

Updating list items by JSOM

I am currently trying to migrate a list from one sharepoint to another. I did this a few months ago allready and there it worked not bad. But now I run into problems. The list is a discussion list. I ...
0
votes
1answer
100 views

Javascript/Ajax errors on custom master page

I have a custom master page using a few JS utilities like jQuery and skel.js that has been experiencing some errors whenever the page loads. The errors are transparent to the user, but show up in dev ...
0
votes
1answer
96 views

'OpenCalloutAndSelectItem' is undefined / 'ShowMenuForTrOuter' is undefined

SP2013 Enterprise, custom master page using skel.js and jquery Recently users have started receiving an error when trying to access the item menu revealed by the ellipses next to an item in a list. ...