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.

1,495 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
2 answers
92 views

"eval is evil()" - But can it be a way around some of the limitations of Minimal Download Strategy?

The process of getting custom JavaScript to work with Minimal Download Strategy is quite cumbersome and especially in the prototyping phase I like to write my (smaller) scripts inline in a Content or ...
Daniel Stölzner's user avatar
3 votes
2 answers
2k views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
Akshay Dattatray Nangare's user avatar
3 votes
1 answer
159 views

How to know which people picker is which

I'm trying to replace all of the "bad" old-style people pickers on our custom new/edit forms with the new good client-people pickers. With this thread I came up with the idea to use jquery to find ...
Rothrock's user avatar
  • 3,010
3 votes
0 answers
2k views

CSR: RegisterModuleInit without hardcoded JS filename?

Always looking to make CSR development easier... This the typical CSR programming pattern: We hardcode the filename inside the CSR file SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", ...
Danny '365CSI' Engelman's user avatar
3 votes
0 answers
545 views

SharePoint 2013 - Add-in - JSOM - Create SharePoint Group

I am trying to create a SharePoint Group in a SharePoint Add-in, which has Full Control over the site collection, using JSOM. Here is my code: function createGroup(groupName) { var ...
GW - SharePoint Developer's user avatar
3 votes
0 answers
674 views

Sharepoint Authentication via REST API

I would like to connect to Sharepoint via REST API and Javascript. Based on readings I've done, first you need to have Security Token, then you use this Security Token to get FedAuth cookies, ...
faaliwin's user avatar
3 votes
0 answers
322 views

How do I restore specific list item version using JavaScript?

How do I restore specific list item version using JavaScript? Is there any way to restore specific version of list item using JSOM or REST API in Share Point?
anomepani's user avatar
  • 237
3 votes
3 answers
9k views

How to check if a list item exists or not in SharePoint 2013 using javascript

I have created one custom form and insert data into one list.I want to check before data insert into the list if the data exists in list or not .
chakri's user avatar
  • 321
3 votes
1 answer
7k views

Full-Calendar Js not showing events

I have created an html page in which i have palced the full-calendar code. the script retrieves data from my shareoint calendar list - "Room Reservation" using SP-Services. I am able to get the ...
Vishwas Goswami's user avatar
3 votes
1 answer
66 views

Getting back-end data and displaying it in the client

My SP Admin level is strong. My SP dev level is beginner. I know some JavaScript. What is the best method of bringing Server and Farm information from the back-end to the client-side? For example, ...
spex5's user avatar
  • 808
3 votes
0 answers
305 views

How to dynamically change the drawing path in Visio Web Access Web Part

I am wondering if there's any way to dynamically change the drawing shown by a visio web access web part. I have multiple drawings I want to show on a page based on what users click on the page. Any ...
user2308321's user avatar
3 votes
1 answer
5k views

Uncaught TypeError: Cannot read property 'toString' of undefined

I have implemented the jQuery UI autocomplete functionality on a input field using JSLink. It works like a charm when I test it using Internet Explorer 9, 10, 11 and Chrome. Some users are however ...
Padawan's user avatar
  • 179
3 votes
2 answers
1k views

Get object of ribbon button in JavaScript

I am trying to access the ribbon button via JavaScript. Below is my code: // Get the page manager var ribbonPageMgr = SP.Ribbon.PageManager.get_instance(); // Get the ribbon var ribbon = ...
Naveen's user avatar
  • 1,892
3 votes
1 answer
3k views

Automatically add attachment to new list item

is there any way to automatically add an attachment stored on the SP server to the new list item? I enter the URL of the file and this file will be stored after adding an item in lists/list_name/...
Ludvik Ctrnacty's user avatar
3 votes
1 answer
836 views

SharePoint 2013 App Office 365 copy list item

I try to build an SharePoint hosted app, have started with a custom menu action. When I choose it I want to copy the selected item and automatically change some metadata for it. Problem is I can't ...
mapa0402's user avatar
  • 131
3 votes
0 answers
378 views

SharePoint Edit Mode Javascript error in edit mode

I am not able to edit the page from the browser. I used to change and edit webparts when suddenly in the edit mode everything looks like it is locked/stalled. When I open the debugger tool, I saw a ...
Johnny Zghaib's user avatar
3 votes
1 answer
125 views

SharePoint 2010: Create a compilation email from multiple items

First of all, the tools I have available to me are SharePoint Designer and InfoPath, and I am much more comfortable in the former than the latter. I have a request to create a solution to facilitate ...
Carlos's user avatar
  • 167
3 votes
1 answer
1k views

Filter list items using custom field type in REST API

I have a custom field type created by inheriting default SPFieldLookup type field. I have a SharePoint custom list with these type of fields. I want to fetch list items from this list using REST API. ...
Dikesh Gandhi's user avatar
3 votes
2 answers
312 views

Create a folder and add properties (field values) to it on form submission

I have created a simple form on SP site, on the submission of which a folder with entered name in the form would get created in the desired doc library.Library has some custom columns such as ...
Pankaj Kore's user avatar
2 votes
0 answers
113 views

Sharepoint 2019 - modify search result item template to return Office URI Schemes

I am looking for a way to open word, excel, ppt files in a local client application. For any mysterious reasons that work in document libraries but not in search results. I know that it works if I ...
User44311465's user avatar
2 votes
1 answer
3k views

Retrieving "CanvasContent1" in JSON format

I'm trying to build my knowledge of SharePoint Restful API so that we can ultimately script bulk updates to pages. Something I don't understand is why the "CanvasContent1" column is being ...
Daniel Alvers's user avatar
2 votes
0 answers
171 views

SPFx monorepo with shared typescript code

Tasks are: Having multiple similar sibling folders each contains spfx projects with one webpart, and ability to develop each separately and build each own .sppkg file for a separate deployment. ...
Valerii Petrenko's user avatar
2 votes
1 answer
328 views

How to update approval comments of a SharePoint task list

I am trying to perform an approval using REST API in SharePoint 2013. I am able to successfully Approve/Reject but unable to read or save approval comments. I couldn't figure out what is the column ...
Ishan's user avatar
  • 774
2 votes
0 answers
121 views

javascript to approve Microsoft flow

I have created several Approval flow. These flows send an approval email to approver and they work fine. Now I want to create a page (classic sharepoint) with all items of all flows to approve (...
Marco's user avatar
  • 43
2 votes
2 answers
2k views

Get the data from Multi line Text field and set it to text area line by line

I have a multi line rich text field and I want to get the data from column and set in text area line by line. I tried Splitting but I need another solution if possible.
user8407421's user avatar
2 votes
0 answers
97 views

Update a library field when uploading a file using javascript

I am using a spfx webpart to upload a file and modified a column value associated tothat file. The code below works and stop working without any reason and i can modify only the title field with it. I ...
Keshav Taurah's user avatar
2 votes
1 answer
281 views

Calling executeQueryAsync in each loop for sharepoint javascript

I want to update table rows with information from a Sharepoint list. So, I am calling executeQueryAsync within a For Loop and it only updates the last item, but not all. var oRows= $('#dataTable tr');...
Amrik Bhogal's user avatar
2 votes
0 answers
74 views

permissionKind returns void in React

I have a search function that returns all list items including their parent link based on their content type, tenant-wide. Every list item comes from a specific subsite and I want to split the ...
Arte's user avatar
  • 167
2 votes
0 answers
580 views

SharePoint 2013: what is the use of "customstrings.js"

I have a Content Search web part with a dynamic query on a SharePoint page in our site. When I added this web part it was throwing below error: One or more of the following resource files failed ...
Ganesh Sanap - MVP's user avatar
2 votes
1 answer
963 views

html & javascript to change URL on a form action based on a drop down

Using simple html and javascript how can I have one html form that asks two questions: Text OppID Dropdown LegalEntity LegalEntity will have available company1 & company2 When company1 is ...
user63270's user avatar
  • 189
2 votes
1 answer
44 views

Color coding list custom field in SP 2013

We have a field called next due date. I'm trying to color that field if it exceeds the date. Red color if exceeds the date and yellow color if it is 1 day near to the due date. Please guide me on ...
Ash's user avatar
  • 21
2 votes
0 answers
47 views

Displaying Image on SharePoint page from another SharePoint site (Of different Farm)

We have two different SharePoint server on different farm. We want to take images from one SharePoint site library and display it on another site page. We have given URL of images on page but it is ...
Nafe's user avatar
  • 160
2 votes
0 answers
36 views

Display the meta data of a page on the page itself

I want to display the page metadata (e.g status) of an aspx-page on the site itself. The sites are located in the default site pages library. library: Name:page1 Status:draft Name:page2 Status: ...
michi's user avatar
  • 29
2 votes
0 answers
40 views

retrieve Date and time filed value from one list and assign it to another list field "share point online"

so far i have retrieved the values and assigned them from "List A" to "List B" with same column names, 1) but date and time column called "End date and Time" needs to be split in to date and time ...
renai's user avatar
  • 31
2 votes
1 answer
140 views

After migrating my sites from SP 2013 on-premises to SP online, the JSLINKs associated with site columns did not work

I have SharePoint on-premises 2013, where inside some site collections, I define JSLINKs as follow, to disable site columns inside the quick edit grids:- (function () { var overrideContext = {}; ...
John John's user avatar
2 votes
1 answer
298 views

error starting sp2010 workflow in sharepoint Online using javascript

I am trying to start a sharepoint 2010 style workflow which is configured on a list in sharepoint Online. I can't figure out where my problem is - each time I try to start the workflow with code, an ...
JohnJ's user avatar
  • 106
2 votes
1 answer
394 views

Sharepoint Online new form move bottom save button location and change text to submit

I've made some edits to the new form whereby I hide several fields. Issue is, the table sections which hold those hidden items are causing a large gap between the apparent bottom of the form and the ...
nohholmez's user avatar
2 votes
0 answers
113 views

JavaScript. Use Outlook online API from SharePoint online page without double user authorization

Is there any way to get user's events from Outlook online with JS from SharePoint online page without user re-authorization? What API can be used? User is already authorized on SharePoint Online, is ...
user1167761's user avatar
2 votes
1 answer
704 views

How to Remove previous and future month date from calendar view so only current month is displayed

I am very new to the SharePoint and hope people can help. I have setup a calendar and was able to apply CSS to make the calendar into weekday only. http://www.c-sharpcorner.com/UploadFile/fc34aa/hide-...
York's user avatar
  • 21
2 votes
0 answers
468 views

View Last Published Version

I am trying to create a document library, which has a default view of the most recently published major version. If anyone checks-out a document to create a draft, I want other editors to be able to ...
J.Choe's user avatar
  • 73
2 votes
1 answer
68 views

Unreachable JS trying to use Status Indicators - SharePoint Online

I follow this tutorial to get column painted I have a list called: "Seguimiento de Sistemas" It have a column with select list called: "Status" Now I have that list in a WebPart and js into ...
Ledwing's user avatar
  • 465
2 votes
1 answer
138 views

Passing displayed item ID to a newitem form of a webpart

I have a webpart with list B put in a displayform of an item of list A . Lets assume its for adding grocery in your basket where list A contains baskets and list B groceries with a column associated ...
Kloggy's user avatar
  • 145
2 votes
0 answers
123 views

Key Filters fields which contain Managed metadata columns will float out of the layout if i move the mouse over one of the managed metadata fields

I am working on an enterprise wiki site collection inside sharepoint farm 2013 on-premises. now i enable the metadata navigation and filtering site feature, and i added 5 managed metadata site columns....
John John's user avatar
2 votes
0 answers
52 views

SharePoint add-in won't create subsites upon button click

I have recently created a add-in for SharePoint online that will allow me to make a subsite. My written code doesn't show any errors, but it seems like it won't execute after a button click. <...
Tob's user avatar
  • 51
2 votes
0 answers
31 views

When two client context scripts collide

Got a publishing page with two custom sections using javascript. the first is defined on the master page and filling some dropdowns in the left navigation bar the 2nd is defined on the page layout ...
Celophysis's user avatar
2 votes
0 answers
29 views

Parent-Child Indexes

I have two (2) lists that I've connected by an "Control ID" field, using the Web Part connection - the thing is, when I update the Child list [using "New Item"], the Parent "Control ID" value does NOT ...
DKing5454's user avatar
2 votes
0 answers
164 views

Accordion h2 open by link

using code from this site i have added accordion to SharePoint page. Now i'm try to open certain part of accordion by link from external page. I guess it should be done with hash but unfortunately ...
Tehn's user avatar
  • 21
2 votes
1 answer
638 views

How to get the subsite url from an image url in SharePoint Online using JavaScript?

I have a list of urls pointing to images, which are originated in various subsites - sometimes burried in nested folder structures. Now, my question is: Is there any way I can derive the url of the ...
Thassilo's user avatar
  • 121
2 votes
0 answers
51 views

SharePoint Survey Countdown and Click Next

We have an OOB SharePoint Survey that asks a question and if the user doesn't answer in 20 seconds, we want the survey to advance to the next question. We have a Script Editor snippet.. and if we ...
Kim Smith's user avatar
2 votes
1 answer
80 views

Returning results from a SharePoint list using Javascript code

Going round in circles. I'm trying to return results from two columns on a SharePoint list pictured, which will return the results to a HTML page which is being created by a different JavaScript ...
Dazza's user avatar
  • 767

1
2
3 4 5
30