An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

0
votes
3answers
19 views

jQuery - Detect value change on page and call routine

On an EditForm.aspx page I have a routine to hide/unhide a field based on the change of another field. It works fine on pageload, but I want to fire the change on the page itself if the user makes a ...
0
votes
3answers
44 views

Disable Hyperlink & convert the link to text in sharepoint [duplicate]

Posting it again, but with more information. I want to disable Hyperlink and convert the link to text in SharePoint. I`m using Jquery and below is the code. the code works fine for the first time, ...
0
votes
0answers
7 views

FullCalendar ViewRender after postback showing NaN - Calendar events disappear in safari

I am using fullcalendar js in my SharePoint 2010 site. I am having two dropdown filters in the calendar view. The first dropdown will perform a postback call using a c# webmethod and will fetch event ...
1
vote
0answers
21 views

Post JSON ajax request with cors not working in IE10/Edge

Background:- I created a WCF service hosted in SharePoint server IIS. Service exposes GET/POST method and cross domain enabled and can be accessed using https too. To make it accessible, self signed ...
0
votes
1answer
31 views

Disable Hyperlink on a SharePoint 2013 page

I want to disable the hyperlink for a specific class part of Site Feeds in SharePoint 2013. I`m using Jquery to do the same, but it is not working for me. Code for reference <script src="https://...
0
votes
0answers
19 views

Method to get list headers & filters via jQuery SPServices CAML GetListItems or similar?

Is there a method similar to GetListItems to grab the column headers and/or filters for a list? Or a way to use GetListItems to get that information?
1
vote
1answer
32 views

Error while iterating list

I tried this: var itemArray = []; var clientContext = SP.ClientContext.get_current(); var oList = clientContext.get_web().get_lists().getByTitle('FlexMasterList'); var oListItem; ...
0
votes
1answer
32 views

SharePoint list filter jquery

I was able to create a SharePoint list filter as per the steps in this solution. Page a list via A-Z Now I am trying to highlight the selected letter through CSS (.selected) but not able to achieve ...
0
votes
1answer
22 views

How do I hide specific check boxes using JQuery?

I am trying to learn JQuery to customise the way forms are displayed in SharePoint (in particular, to hide/show the options available in choice fields). I have managed to hide options/values within a ...
0
votes
1answer
23 views

how to prevent duplicate values for people and group column sharepoint 2010

I've column in a list where we are adding the user name(column type = user and group). If the user is already added in the list and same user if I want to save I should get error message user already ...
0
votes
0answers
24 views

how to merge two items in a single list

In SharePoint 2010 List how to merge two item id in new item while clicking on button using JAVASCRIPT/JQUERY/SPSERVICES. For example I've List1 in this two item inserted. Now once I'll select both ...
0
votes
1answer
21 views

Disable Item Created By Permissions in SP2007?

I have been editing the editform.aspx for a list I manage. I used some jquery and javascript in order to hide certain fields. However there comes a point in my workflow where I need to disable the ...
2
votes
1answer
241 views

Get value from JSON from SharePoint REST [closed]

If I use below line, I get output='1'. data.d.results[i].ID; But instead of giving hardcoded ID, Is there any way to pass by variable? I already tried like: var array=["ID","Title"]; data.d....
0
votes
0answers
27 views

Hidden Fields in Custom Editform Don't Populate

I'm hiding a field in a custom Editform by adding a CEWP and some jQuery to hide the table row for the field. The form shows correctly and everything is hidden nicely. My issue is this... it seems ...
0
votes
1answer
20 views

Site Assets Javascript file will not update

So I have the weirdest problem I have seen in SharePoint yet. So I am trying to practice using javascript and I can't figure out what is wrong with my methodology. For a background, I am trying to ...
0
votes
0answers
22 views

How to insert image into SharePoint Attachments column from HTML FileUploadControl using jsom

I need to insert image into SharePoint list Attachments field from HTML ImageUploadControl by using javascript/jquery. I have used this code but getting error of MoveTo is not a function. ...
0
votes
0answers
8 views

Trying to compare People Picker entries and Created By on EditForm SP2007

Been beating myself up with this since last week. I have zero luck getting answers (usually Im told my question sucks on every exchange forum) around here but I am desperate again. This is for SP2007....
0
votes
1answer
30 views

Jquery for document querying

How would one go about finding the correct JS/Jquery methods to accomplish the following? I would like to retrieve the URL parameter passed to the page(the parameter being projectCode) and then using ...
-1
votes
0answers
30 views

Internal RSS Feed

Sharepoint 2013 Foundation: I am using Discussion Board as a method of serving news, I would like this to be displayed as a RSS animated news ticker. I have started using 'zRSSFeed' which works with ...
0
votes
0answers
15 views

SP2010 Add/Update multi-select lookup column REST

I have a list named CAG_QUESTION with a multi select lookup column to a list named CAG_REFERENCES. I have been unable to get an update to work that includes the lookup column. I thought I needed to ...
0
votes
2answers
54 views

filter ListView using RestApi in sharepoint APP

Please let me know is there any way to filter list inside listview using restapi Example: TestList And below is my custom search:(currently it is configured on Title field) Now after filter(Title=...
1
vote
2answers
32 views

JQuery add class to url when on page in current navigation menu

I'm currently using the SharePoint Web Control spnavigationmanager to create a navigation for sites that are easily configurable by going to Site Settings > Navigation and making changes there. I'm ...
0
votes
1answer
25 views

onchange event handler not working properly

I've created on onchange event handler using jQuery in SharePoint that is not working properly. After the page loads and the Request Type field is changed the other fields that are displayed will ...
0
votes
1answer
27 views

How can I use JQuery to conditionally require the people picker field on edit form?

Environment: SharePoint 2013 foundation I'd like to make/validate the People Picker field required conditionally in the edit form of a task list. If the task status is changed to Completed, I want ...
0
votes
3answers
36 views

REST API : fetch the listitem details using it's url

I need to fetch the listitem details using it's url with REST API. The list item url is like : http://<webappname>/Sites/<sitecollection name>/en-US/Pages/TVM3.aspx I want to fetch the ...
1
vote
2answers
39 views

How to get the return value from SP.SOD.executeFunc?

I have the same scenario as what this below question has: How to get the return value of an on demand executed function? I have SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getPageTitle); ...
0
votes
0answers
34 views

I've added people picker and I want to add its values to column in a list

I have a column of type group or people. I've implemented people picker on aspx page using jQuery. I want to add picked users to my column in list my code is: $(document).ready(function () { // ...
1
vote
3answers
55 views

My jQuery code is not kicking off in DisplayForm in SharePoint

I have added some jQuery code to the DisplayForm as follow- <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1....
0
votes
0answers
38 views

REST API / People Search Results

In my people search results I am querying the REST api to get a link to each person's CV, which are all held in a single document library. I am returning the correct results, but rather than one CV ...
-1
votes
0answers
32 views

“[object Object]” is alerted when I try to check whether my admin field contain value or not [duplicate]

User recieves an alert box with text as [Object Object] on the screen when he runs the below function. What could be the possible reason for it and how to avoid it. function PreSaveAction() { var ...
-1
votes
2answers
65 views

people picker and rich text box field not function well under presave. alert box pops up even there is info provided

function PreSaveAction(){ var ITOwnerField = $("#ctl00_ctl41_g_648c8386_16ca_4729_9c59_c9757150bafe_ff41_ctl00_ctl00_UserField_upLevelDiv"); SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
0
votes
2answers
33 views

Jquery to insert total of a column onto another column in SPS2013?

Please suggest the way to get Jquery to perform total of the numeric value in column 1 and insert the output on column 2 in SharePoint 2013 List?
1
vote
2answers
27 views

Is this the proper querying method for SP2013?

I'm having issues trying to load the proper script below to become a customized image rotator on my SharePoint 2013 platform. Can anyone help please? I want to know if I am writing the code properly......
1
vote
1answer
65 views

Registration form/Auto fill list - Sharepoint 2013

I'm working with SharePoint 2013 and SharePoint designer 2013. I DON'T HAVE INFOPATH. I have 2 lists, one is a training calendar and the other one is for registration to these training. Here's the ...
0
votes
3answers
46 views

presave function not working for multiple fields

var j = jQuery.noConflict(); function PreSaveAction() { var txtTitle = $("#ctl00_ctl41_g_648c8386_16ca_4729_9c59_c9757150bafe_ff21_ctl00_ctl00_TextField").val(); //Application Name //...
0
votes
2answers
57 views

SharePoint Context and Caml query is not working

Here is my code.. var CmalQuery=""; var fieldName=""; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); fn(); }); ...
0
votes
1answer
75 views

SP 2013 - JQUERY to check the value of a choice type field

Im hoping someone could supply me the proper SHAREPOINT SYNTAX to use in JQUERY code to check what the value of a SHAREPPOIINT CHOICE TYPE field. I thought I needed to check a checkbox type field so ...
-1
votes
1answer
30 views

I want numeric count for checked box but i am getting array of values [closed]

$("#UserOrgId").find("span.ms-RadioText > input").each(function() { console.log($(this).prop('checked')); } ) //Provides me 23 rows with true false value but i want count of trues only i.e....
0
votes
2answers
46 views

Fetch User Details in SharePoint 2010

I have a requirement to fetch user details in SharePoint 2010. Just like SharePoint 2013, are there any web services available which can used in JavaScript Code? I need to fetch user details that ...
0
votes
0answers
32 views

Jquery to copy specific data and insert it in a specific blank field in SPS 2013 List

Is it possible using JQUERY in SharePoint 2013 Enterprise (On Premise) to copy read only specific data flashing on a SharePoint 2013 List and insert it on a blank field on the same SPS 2013 List?
0
votes
3answers
58 views

alert message not popping up

var j = jQuery.noConflict(); function PreSaveAction() { var txtTitle = j.(":input[title='Application Name']").val(); alert(txtTitle); if(txtTitle == ''){ alert("Value Cannot be ...
0
votes
1answer
36 views

Automatically update hyperlink to point to newest added document in a library

This is my first post here, so bear with me. I am reletivley new to SharePoint, however I do know my way around it. Basically on my site homepage I have promoted links set up along the top. One of ...
0
votes
2answers
54 views

Calculated column output with CSR

I have a calculated column which returns YES NO. I want to color code the entire row based on these values. Below is my code using CSR **(function () { // Initialize the variable that stores the ...
0
votes
2answers
54 views

Seattle.html and Oslo.html not visible in SharePoint Designer

The book I'm using as a resource to add jQuery to our SharePoint Online site discusses editing the Seattle.html and Oslo.html files in SharePoint designer. However, those files are not appearing in ...
1
vote
1answer
60 views

jQuery in has stopped working in SharePoint Online Web Parts

So I'm adding a accordion to clean/beautify our team's SharePoint site. I had it functioning, then today I was modifying another part of the page and the accordion suddenly stopped working. I reverted ...
0
votes
0answers
31 views

Javascript no longer works after loading a SSRS Viewer Web Part

I have a sharepoint 2013 page with three web parts. Two are list web parts and one is a SSRS Report viewer web part. I've added the following scripts to the page via a CEWP. <!-- Name: ...
5
votes
3answers
281 views

Custom ECB-Menu Item which copies the Link of the document into the Clipboard

I would like to add an Item to the Edit Control Block Menu (ECB-Menu) (red marked in Screenshot), which copies when clicking on this Item (onClick) the link of the chosen document into the Clipboard. ...
1
vote
2answers
62 views

How to access custom property from User Profile using jquery

Environment : SP 2010 I have a custom property in User Profile called CompanyCode. I need to fetch this property using javascript/jquery in a master page. Can anyone let me know how to fetch custom ...
0
votes
0answers
24 views

Prevent modal dialogs from getting closed after deleting an item

my JavaScript-application has a rather deep navigation using cascaded modal dialogues (SP.UI.ModalDialog.showModalDialog(...)). Sharepoint does handle this really well. From the 3rd level modal ...
1
vote
1answer
105 views

How to retrieve and display Sharepoint calendar events using JSOM (example)

How to retrieve and display Sharepoint calendar events using JSOM ?