Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [javascript]

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.

0
votes
1answer
434 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
0
votes
4answers
3k views

JQuery in a Visual WebPart won't load on the page with the webpart

Hey I have a bunch of JavaScript/Jquery code that works really well when I use a Content-Editor webpart, but does not execute when I add the same code to the VisualWebPart mark up. I am referencing ...
0
votes
2answers
1k views

JSOM Script Returning serverRelativeUrlOrFullUrl Error from SP.ClientContext.get_current()

I'm attempting to build a script for a Sharepoint 2013 project management hub that eases the process of spinning up and archiving project subsites as they are needed. I'm having trouble getting my ...
0
votes
1answer
3k views

Hide fields until a value in a radio button is selected

My requirement is that i have a radio button on a New Item form with the values of Yes/No. If No is selected, i need to be able to have 10 fields appear (single line of text) so that the end user can ...
0
votes
1answer
52 views

Custom JavaScipt within Site Settings

I have included some JavaScript in a master page of a site collection that shows a button. When an internal user clicks the button it directs to an internal accessible site and when an external user ...
0
votes
1answer
292 views

Can UserCustomActions run on a web only?

In a site collection there is a particular subsite where I need to apply a UserCustomAction. It will be a basic JavaScript function that prompts for acknowledgement and sets a cookie. The need to do ...
0
votes
2answers
846 views

Navigating to new page loses querystring

I have a on premise sharepointed 2013 application. On the home page, there are several links to different pages within the application itself...such as <a href="User.html">User</a> ...
0
votes
1answer
118 views

Getting undefined when trying to get input textbox of DatePicker

I want to disable Date and Time picker but I can´t get input textbox, I always get undefined Code <script> // Search for the input textbox of DatePicker by its title and get its Item ID var ...
0
votes
2answers
1k views

Is there any way to access a managed meta data service using only javascript in SharePoint 2010?

I am creating custom forms in a SharePoint site. The only thing is most of our Lists contain managed metadata fields. I have been successful in adding new items to Lists having only standard fields ...
0
votes
3answers
67 views

ADD Multiple UserID's into a column

I want to add multiple UsersID's into a column. Column type is "People and Group". Everytime it's inserted an userid, he smashes the other one, staying only one. Can someone help me? Thank You. //...
0
votes
1answer
778 views

Get site url from list item sharepoint 2010 javascript

I have the following code and need to obtain the site url to form a hyperlink. How can this be achieved? Code prints out title but I cant get to the web url . I want the url of the site that the list ...
0
votes
1answer
208 views

New/Edit form how to tell if people picker is multiple or single with code

I'm doing some manipulation of my new and edit forms using javascript and jQuery. I'm able to find all the people pickers on the page with the following selector var $pickers = $('div[title="People ...
0
votes
2answers
235 views

Master Page script only executes once

I have added the following code after the include for the JQuery file and the script tags in my master page. I put the script immediately before the end body tag of the master page. $(...
0
votes
1answer
126 views

Push SharePoint Content To Excel Spread Sheet

I'm writing a code to get if versioning of documents in a SharePoint site is Enabled, or Disabled. I managed to get that working, but now I need to push the info to an excel file, the information that ...
0
votes
2answers
1k views

JSLink - SP not updating code [duplicate]

I have a .js file stored on the Site Assets library. Today I updated it (uploaded file of the same Name and replaced the old one). But the new code seemed not to work. After lot's of debugging and ...
0
votes
1answer
6k views

Retrieving and displaying custom list column names (which have spaces in them)

I have been to Jan Tiernans blog, and figured out how to grab column names using Soap and jquery/jscript. I can't figure out how to grab custom columns with special chars though. I have read about ...
0
votes
1answer
2k views

Upload new image in asset library in SharePoint Online

I am developing a SharePoint Hosted app for SharePoint Online. Now I wondered if there is a way to upload a new image file to the central asset library. I found several code snippets for C#, but my ...
0
votes
1answer
543 views

Access SharePoint Online data using ADAL js authentication

I am trying to access my SharePoint online data from simple .NET application using JavaScript. Here we will require an authentication. While searching I found this link which uses ADAL.js for ...
0
votes
3answers
9k views

Edit Item Form: Call function after commit (Custom Save Button)

I have a custom Edit form in SP2013 where I want the Save button to do two things: Commit changes Call JavaScript function The function in step #2 does several things including a workflow trigger. ...
0
votes
3answers
2k views

CRUD Operations in Sharepoint Online using JavaScript on external site

I am currently trying to create a List Item in my SharePoint 2013 online environment using JavaScript Code on an external Website and domain. Basically I have no idea where to start and I am not sure ...
0
votes
1answer
1k views

Mega-menu tab on multiple site collections

I would like to create a tab in SharePoint 2007 that is a mega menu. This mega menu tab will be implemented on multiple site collections. It will be a part of the global navigation in each site ...
0
votes
1answer
357 views

Office365 app page doesn't have __REQUESTDIGEST

My app page doesn't have __REQUESTDIGEST on page elements. How do I get this value from sharepoint API ? I used this codes but return 403 Forbidden error var formDigest; $.ajax({ url: ...
0
votes
1answer
33 views

How do I get column data from list webpart using javascript based on the webparts selected item

Scenario: I am trying to create a group mailto function for one of my SharePoint pages. The idea is that the user can select the groups they wish to bulk e-mail within our organisation. They click a ...
0
votes
2answers
741 views

Using javascript variable or function inside caml query on sharepoint list view page with sharepoint designer

I am trying to put custom JavaScript variable or function into the sharepoint's list view page, inside caml query, using sharepoint designer for example: i am opening list view i want to modify. ...
0
votes
2answers
453 views

Jquery conditional dropdown validation question

I have multiple Sharepoint dropdowns validation but I will show only two on my code. I can't seem to find where the problem is. The logic is if the user choose from any dropdown values <> "yes" ...
0
votes
1answer
545 views

Save conflict - reset ratings and ratingscount in presaveaction

In my Editform I wish to reset all the ratingcounts on save, however I am getting an error message Save Conflict. Your changes conflict with those made concurrently by another user. If you want your ...
0
votes
2answers
1k views

Customize Error/Alert Messages on New/Edit/Display Forms

I want to customize the error message for unique values in a list: this value already exists in this list. Tried Can I modify the sharepoint error message? but it's not working. any working ...
0
votes
4answers
4k views

How can I call a custom JavaScript function after a form has validated?

I have a form for submitting events to our calendar. What I want is to call a function once the form has validated. Something like this: User edits item User clicks save button Form validates ...
0
votes
3answers
4k views

Get values from Sharepoint ClientPeoplePicker using JQuery

How do I get value from ClientPeoplePicker using JQuery. I have tried below code, but not getting the results. function getPickerInputElement(identifier) { var tags = document....
-1
votes
1answer
274 views

Javascript to submit Web Part without click

From a previous question, I am able to populate a textbox with a value I can use to reference another list. However, in order for this functionality to be as user friendly as possible, I would like ...
-1
votes
3answers
290 views

Show/Hide fields in SP

The below code is JavaScript to show and hide fields. What I would like to clean up is and include fields in an array instead of individual if else statements(all Internal Fields - All External Fields)...