Tagged Questions

Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

0
votes
2answers
47 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
3answers
45 views

extracting data from list to form

I made a custom list and in the other side I made a apps, in fact it is a form that I have done with html + css + JS using visual studio and deploying my solution in sharepoint online. my question is ...
0
votes
1answer
71 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 ...
3
votes
2answers
152 views

What are the advantages of using SP Services?

What advantages would I gain by using the SP Services library in SharePoint releases 2010 and later? The 2013 (and even the 2010) JavaScript Object Model and REST API seem to cover a significant ...
0
votes
1answer
31 views

fill a field of form from custom list

I want to fill the fields of a form, that I builded by an app in visual studio using JavaScript, from another custom list. my problem is in this code and how to do this with JavaScript. function ...
0
votes
1answer
223 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
326 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
0answers
20 views

Requete CamlQuery

My question is to check if my CAML query query is good or not. I want to get items from a list by the email of the current user.
0
votes
2answers
135 views

Sharepoint 2013 - Javascript Code for File Upload - Max limit exceeded ?

I have an issue with uploading file > 2MB. I have used javascript code to upload files from my UI. In Central Admin, the allowed file size has been increased to 10MB. Whenever I try to upload a file ...
0
votes
1answer
28 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 ...
5
votes
3answers
277 views

Updating a single list item based on relative URL

Is it possible, using SPServices, to update a specific list item when all I have is the file path? For example, I have a file located at /site/library/folder/file.txt and I want to update a single ...
0
votes
0answers
25 views

Is it possible to break alerts in one site collection with client-side scripting?

We have a single site collection where alerts have been down for some time. After review, it was suggested that client-side Javascript (common ones like EasyTabs and SPServices) could break alerts. ...
1
vote
1answer
547 views

_spPageContextInfo is undefined in client web part

I have created a client web part for a SharePoint-hosted app that I am creating. The app makes use of the clienttemplates.js library in SharePoint to render user presence (Lync) in the web page. I am ...
0
votes
1answer
79 views

Remove all user groups from a web site in javascript

I have figured out how to break inheritance on a site, but I really want to do that and then remove all the standard and/or inherited user groups from the site. Is there a way to iterate through all ...
0
votes
1answer
236 views

request failed unexpected response data from server null

My objective is to read and extract data from list created in SharePoint site and put it in another list of the same site. Firstly my problem is that an error message appears where I deploy my ...
0
votes
1answer
168 views

Refreshing a Web Part Without a Post back in SharePoint 2013

I have a list with many columns in SharePoint 2013, I used SharePoint designer 2013 for displaying items , I have tow web parts in a page that I created in SharePoint designer 2013, one web part ...
1
vote
2answers
86 views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
2
votes
0answers
30 views

SP2013: Tabular view incompatible with JSLink checkboxes?

I'm using a JSLink file to replace a "Single line of text" column with a custom checkbox. For some reason, when "Allow individual item checkboxes" is enabled my checkbox won't work - I can't even ...
0
votes
0answers
27 views

Adding central site column to a list with JavaScript in SP 2013

I'm managing a site where several users (owners) can set up new websites. But there are some areas that they always have to change that I cannot apply to the template. So I programmed a small code ...
0
votes
0answers
296 views

Clientpeoplepicker control in custom SharePoint List form

I use SharePoint 2013. I need advice to bind clientpeoplepicker control with a field. By default, user field on list form is displayed same as SharePoint:ClientPeoplePicker. So we have autocomplete ...
1
vote
2answers
150 views

Access an item in a list in a subsite with Javascript(Solved)

function Testing() { var context = new SP.ClientContext('/Testing'); documents = context.get_web().get_lists().getByTitle("Site Assets").getItems(); context.load(documents); ...
1
vote
2answers
356 views

Expand collapse text on a Wiki page

I am trying to have a section of text on a Wiki page hidden by default, but when clicking on a link/header the text is then unhidden/expanded. I have searched online and thought I was getting ...
0
votes
2answers
501 views

Trigger JavaScript on Custom Action Ribbon/Menu Item

I have two custom actions that are currently deployed to a SharePoint 2013 Forms Library. They are working perfectly fine with the exception of a less than favorable method. What happens now is that ...
1
vote
1answer
71 views

Editing Managed Metadata List columns using JavaScript

I am attempting to update a list outside of my app web. When I find the list, I am finding my column, then casting that into a TaxonomyField. The purpose of casting is to be able to play with ...
1
vote
2answers
194 views

Insert a list item using REST form webpart: 403 error even when X-RequestDigest is present

I intend to insert a list item from the main page in intranet to a list hosted on another site collection. I made this simple HTML & JS to get it done, but I always get the 403 / FORBIDDEN error: ...
2
votes
1answer
66 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 ...
0
votes
0answers
48 views

Modal dialog loads hosting page after action

I have a user for which I want to "pull out" the user management screens by providing links to modal dialogs. This works just fine until we start adding users. This action opens a second window to ...
3
votes
1answer
500 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
1answer
291 views

Hide ribbon control in newform.aspx & editform.aspx

I want to hide ribbon form my newform.aspx & editform.aspx forms only. I don't want to hide ribbon from my whole site. I just want that whenever a user add or edit item top ribbon must be hidden ...
0
votes
0answers
93 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 ...
3
votes
1answer
1k views

SharePoint 2013 REST - Create list item with user field and lookup field

I'm trying to add an SPListItem to an SPList via REST, but have a problem with User or Group and Lookup (information already on this site). function adddullitem() { var item = { ...
4
votes
3answers
166 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 ...
0
votes
1answer
61 views

How to validate parent list data while creating new child item

I am having a parent list and child list. Parent list (Contract) is having an Contract Num, Contract Amount, Start Date and End Date columns. Child list (Project) is having and Project Name, Parent ...
0
votes
1answer
67 views

SP2013: Custom script interfering with OOTB ribbon controls

I've got a weird one here, and my JavaScript/SP2013 skills aren't up to the task apparently. I've got a custom script that I made by bashing together other scripts & snippets from around the web. ...
0
votes
1answer
104 views

Displaying list from another site collection, want items to open in a modal dialog

Here is the code I'm using. Keep in mind that I know practically nothing about javascript and borrowed the code from someone else. He hasn't had time to look at it yet. I'm just trying to modify it to ...
1
vote
3answers
961 views

Sharepoint- Client Object Model - Javascript - How to check if a particular file with same name exists in a document library folder

I am using javascript sharepoint 2013. I want to know how to check if a file exists in a folder, before i upload. Here's my code // Folder Name - folder into which I need to upload var ...
0
votes
1answer
34 views

2 client contexts using the same success method

Is there anyway to have 2 client contexts in the same success method like so var clientContext = SP.ClientContext.get_current(); var peopleManager = new ...
2
votes
1answer
64 views

Count characters in text field

I have a simple custom developed list that contains three columns, one of these columns should take maximum 7 characters, otherwise problems are caused, thus I want to make the user aware of the ...
0
votes
0answers
15 views

custom page allowing verification of existing item

The scenario is that I need a multi stage pages. Ideally I would like to do this on a single page but for simplicity 2 pages are fine. On the 1st page I need to verify if an item exists in the ...
1
vote
2answers
37 views

Get the field “Created”

I have a list "Consult", and I want get the field "Created" this is my code: function consultWorkOrder() { try { var customlist ; var clientContext = new ...
0
votes
1answer
110 views

Check if the user has attached any file

When I open(edit) some item in a list I want to check with JavaScript if the user has attached any file in my Edit Form...
0
votes
0answers
69 views

javascript not rendering on display template

While creating Display Templates, I am working on a control template. I have three javascript files and a css file that's not rendering. I have checked the path and ran full crawls, below is the code. ...
0
votes
1answer
78 views

object object from get_userProfileProperties() stringify

var clientContext = SP.ClientContext.get_current(); var peopleManager = new SP.UserProfiles.PeopleManager(clientContext); // Get user properties for the target user. // To ...
7
votes
2answers
220 views

Disable ECB flyout menu in Sharepoint 2013

SharePoint 2013 introduced a new flyout on list items instead of a drop-down context menu. When you click the 3 dots next to a list item or document, you get the flyout. You then have to click the 3 ...
0
votes
2answers
268 views

How to find relative URL of a document library using JavaScript?

What I am trying to do is to enable the dialog with the metadata information when I drag and drop a file in a document library. The same dialog that appears when you upload a file through the +New ...
0
votes
0answers
22 views

finding if a user profile property is in the edit page section

Basically as the title says how can I find out which of my user profile properties are in the edit page using javascript. my code is : var MyProperties, getMyNewsChoices = function () { ...
0
votes
0answers
36 views

User Profiles get properties and calculate the percentage of empty properties

I've been playing around with user profiles and come across this SP.UserProfiles.PeopleManager.getPropertiesFor(accountName) however I am not sure how to implement what I want to do. I want to loop ...
0
votes
1answer
194 views

SP2013 online : set_formDigestHandlingEnabled Error

I get the error : Object doesn't support property or method 'set_formDigestHandlingEnabled' when I try to get the current SPContext object from javascript code in an Office 365 site. I am ...
2
votes
2answers
338 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 ...
2
votes
2answers
311 views

Copying files AND folders via REST/Javascript

I'm trying to build a the following functionality into a library view: Each document has a checkbox beside it User checks off which documents/folders they want to copy User clicks a "Copy Files" ...