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.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Why highlighted items not showing in search? [Javascript]

I have a Javascript code that highlights my results on a specific status. The script works fine, but the problem when i search for an invoice id the color of the highlighted item disappear in search ...
0
votes
0answers
8 views

Chart not showing when using Vue-chart js in SharePoint

I have a SharePoint list and I'm trying to visualize the data using Vue-chartjs. When I do so, all I get is a canvas with a grid and not chart being rendered. Any ideas? Any help would be much ...
0
votes
0answers
11 views

Form Submission - false positive

I have a custom NewForm (not infopath) on O365 SharePoint that is failing to submit to the backend list. I have a redirect on it to a thank you page and some custom validation using the PreSaveAction ...
0
votes
0answers
11 views

Splitting an unordered list into 2 columns - jquery [on hold]

I'm splitting out some data using csom and using li (list items). What i would like to do is the possibility to add 2 divs to my li (list items). I can render the below but i think i need it re ...
0
votes
0answers
21 views

I was given a XML web part that uses SharePoint Services. I need to convert it into an ajax/JSON webpart

I was given an old webpart using SP services and XML. I was requested to use Ajax. This is the first time I do this kind of conversion and I am not sure if I am doing it correctly. When I open the ...
0
votes
1answer
12 views

Copy list item and create a new one in the same List using JSOM

I have a list with items. I have added a button in the ribbon, which is opening a confirmation page(dialog window) if user is sure that he want to create a new item from the current one and redirect ...
0
votes
0answers
10 views

consume sharepoint REST web services from html

I want to access list items and files in document library in a sharepoint OnPremise site from my HTML application hosting in another server without any server side coding. I mean i want to ...
0
votes
0answers
7 views

Sharepoint 2016 internet explorer error - window.location.pathname is undefined

Hello i'm facing this problem in a sharepoint 2016 on-prem environment. i customize my masterpage (starting from the seattle one) adding some custom javascript such as following............... <...
1
vote
1answer
31 views

getting TypeError: allGroups.getByName is not a function

I am using this code example to redirect a user based on group, but I am facing this error message: TypeError: allGroups.getByName is not a function my code: <script src="https://ajax....
0
votes
1answer
35 views

sharepoint 2013 list expand/collapse multiple line text column

I'm desperate and need your help on this script. I have a "multi line text" column named "Comments", and i added the following script into a script editor but it is not working for me. could you ...
1
vote
2answers
29 views

JSLink Column Format is not taking action

I have a list of type Classic Experience that contain column "Status" assume the following values: Approved, Pending, and Rejected. Each of these values contain a color format based on Javascript code....
0
votes
1answer
13 views

jquery prepend doesn't work in sharepoint 2013 forms

I tried to add some label on Sharepoint 2013 forms with jquery prepend. I write a code for testing purpose, add a row with text 'Label1' before column name 'Project'. It doesn't work, 'Label1' is not ...
0
votes
1answer
32 views

Jquery change event on miltiline text field (plain text)

I have tried to set up an onchange event to be triggered on a Multiline (Plain) Text field. I have tried all the following without luck. $("textarea[Title='Identified Tasks']").closest("span").find("...
0
votes
1answer
42 views

SharePoint JS Button Ribbon is not reading functions

So i have created a new button called "Closed" using SPD 2013, and using "Communaction site", inside this site i have a list of type Default experience. The button location is "View Ribbon" and i ...
0
votes
1answer
21 views

How to resolve javascript: SPClientPeoplePicker is not defined in Edge (works fine in Chrome and IE)?

I just noticed a javascript function that finds and populates people picker controls in SharePoint was not working in Edge, whereas it works fine in Chrome and IE. In Edge I see an error in the ...
0
votes
1answer
20 views

Get file of specific version using JSOM in share point 2013

I want to get the file of specific previous versions using java script object model in SharePoint 2013 environment. Please share the code if any one is already worked on similar requirement. Thanks, ...
0
votes
0answers
24 views

How to do filter in Entity Grid using JavaScript or C# in PowerApps model driven app

I need to add custom filter in entity view on first column in Model driven App (PowerApps) using JavaScript or c#. I had given view example in below screenshot.
0
votes
1answer
24 views

I am retrieving items from a list and want only 4 to show on my page

I am retrieving items from a list, which has 5 items, but I only want 4 to show and every time I add a new item I want the new item to show first and then the other 3 items to follow and the fifth ...
0
votes
1answer
16 views

How to change SP people picker label with javascript?

How do you change the label (not field values) of a SharePoint people picker using javascript? Having a foggy moment where nothing seems to be working.
0
votes
0answers
26 views

'n' number of CAML queries in a single executeQueryAsync function

How to execute 'n' number of CAML queries to get a different list of objects? We can use multiple clientContext.load() if we have a defined number of queries like clientContext.load(collListItem); ...
0
votes
0answers
17 views

SharePoint 2013 using Javascript to create a picture library carousel

I am trying to extend the out of the box Picture Library Slideshow Web Part to be able to click an image and be redirected to a new link. I would like each image to have it's own link. I created a new ...
0
votes
1answer
42 views

Multiline Text Fields Append Sharepoint

Is it possible in Sharepoint online to create or modify a list view, that instead of showing "View Entries" in multiple-line text column with append-only checked, will show all entries for that ...
1
vote
1answer
37 views

change date in infopath form via javascript

I have a sharepoint 2019 site. in this site i create a list with two column (1.name[text type] 2.Date[DateTime Type]). then i design this list in infopath. When I want to add a new item, I change the ...
1
vote
1answer
40 views

Migrate Current React JS Project to Run in Sharepoint

Our team has created a React SPA that is js based as opposed to ts. From what I've seen, creating and utilizing a webpart requires typescript. This project is fairly large so I guess I'm just ...
0
votes
1answer
25 views

I have an old webpart in XML and using SP services. I need to convert using Ajax

I was given an old webpart using SP services and XML. I was requested to use Ajax. This is the first time I do this kind of conversion and I am not sure if I am doing it correctly. This is the old ...
0
votes
1answer
22 views

Jquery and SharePoint Currency Field

I have a form with multiple SharePoint fields set as "currency". How do I put a currency field value into a variable? I've tried several version, such as: var txt01TotCash = $("input[id='...
0
votes
1answer
18 views

Adding request limit to Sharepoint/Office 365 API List search

I have a url I am using to query a list in Sharepoint formatted as below. http://sites/sites/site/_api/web/lists/getbytitle%example%/items?$select=Email/EMail&$expand=Email Because my list has ...
0
votes
0answers
13 views

Populate Fields when Clicking “Save” on Custom List

I have a SP 2013 Custom List with 2 automatically generated numbers. Currently, they are queried and populated upon selection of input values for the first 2 fields. The form works great for a single ...
1
vote
1answer
69 views

Script not Working inside of Folder

I am trying to enable the script below in a document library. I originally found this script here. Basically whenever a user drag and drops a file it pulls up a prompt to enter metadata. It is ...
0
votes
2answers
20 views

ClientContext showing data as undefined

I had some code similar to this one for getting data from property bag. However, I am getting some error that my variables are undefined. Even site and web are shown as undefined. What could be the ...
0
votes
0answers
20 views

Struggling with Sharepoint Alert Add-In

so I've been tasked by my company to basically start using Sharepoint in a more advanced manner. My first major task I'm trying to work through is building an add-in for a pop-up that basically does ...
0
votes
2answers
36 views

selectively hide webpart on homepage

My homepage has an embedded view of a list called Project Info which displays important project information. One of the fields is a choice field called ProjectStatus which can read either Pending, ...
0
votes
1answer
17 views

Pull Text from Drop Down Field to Single Line Text Box - SharePoint / Nintex Forms

I am trying to pull in the text from a Drop Down field on my Nintex Form into a single line text box within the same Nintex Form. Is there a custom JavaScript code that can be written to accomplish ...
1
vote
1answer
28 views

Compare one date field with himself but from others rows

I am using SharePoint 2013. Would you please give me a direction through which way I can accomplish this ? I have a list where I have a date field (let it be FinishedDate) with different dates. ...
0
votes
0answers
11 views

Clicking empty content editor webpart throws confirm window

We have a 2013 on-prem setup. We are site collection admin so everything is client-side and javascript, no access to central admin. We have a site using page publishing features and custom page ...
0
votes
2answers
28 views

Javascript to retrieve and validate file attachments in new item form

I have a requirement to inject javascript via a script editor web part into a form and validate that it's not a macro enabled Excel file (xltm or xlsm), and throw a validation error if it is and not ...
1
vote
2answers
34 views

Why is my webpart not hidden?

I have a promoted links webpart that I need to display only if a particular text string is displayed in another webpart on the same page. I can successfully capture the text string to a variable but ...
0
votes
0answers
15 views

How to display multiple calendar icon calendar events using jquery

I would like to view a sharepoint calendar using this view here Happy to do it using rest or CSOM but looking for a jquery plugin. Anyone done something similar or where can i find such a plugin. ...
0
votes
1answer
26 views

How To Apply filter to List View Web Part based on content of Data View field

I am building a project management tool. the top of each project page shows a List View webpart which displays information about the project's current status. A second List View displays a Task List ...
0
votes
1answer
13 views

Populate field onLoad Social feed SharePoint 2013

I am trying to auto populate user Email, Name, Title on a SharePoint form. I can see the values when I inspect the page (F12) but they don't appear on the form onLoad. I can obtain the input fields ...
3
votes
1answer
101 views

Pass file name having space to update operation using REST API

I am using on premise SharePoint server 2016.I am using rest api to update a list.I have a list having space in it's name so while passing this name it causes problem.Is it possible to pass file name ...
1
vote
2answers
44 views

Help to amend existing JSON to add a vertical align element

I currently have the JSON formatting applied to a column: { "$schema": "developer.microsoft.com/json-schemas/sp/…", "elmType": "div", "txtContent": "=if([$Review_x0020_Status] == '', '', '•')", ...
0
votes
1answer
98 views

REST API for setting Multiple users people picker in SharePoint

I inherited a custom application from another developer who used REST API to create list items. Now the requirement is to add a multiple users people picker to the form. I am able to add a multiple ...
2
votes
0answers
23 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 (...
0
votes
0answers
9 views

Data From Custom Edit Form Missing

I am using Sharepoint 2016 and I created a custom edit form on a list with tabs. I noticed that the data from the list item is missing. Fields that are filled out are showing as blank. How can I get ...
1
vote
2answers
39 views

Generate link to Manage Checked Out Files from Document Library URL on SharePoint Online

We have some users we have given access to override check-in on document libraries within SharePoint online, but don't want them to be able to change the configuration of the libraries. Because of ...
0
votes
1answer
23 views

Promoted Links list to show most clicked document library tiles

I am working with SharePoint online and on a subsite landing page, I am using promoted links list web part to render 8 tiles, one for each document library, when users click on these tiles, they get ...
0
votes
3answers
64 views

disable options in dropdown in sharepoint list

I tried this code to disable the options in the drop-down in the date picker time: Script editor: the value is still visible. But it is not working. Kindly advise.
0
votes
1answer
40 views

Read Excel sheet located in the document library in SharePoint Online

My requirement is to read the Excel sheet data which is located in the SharePoint Online library using JavaScript and get specific values from columns based on the comparison. E.g., if cell(a1-a20) ...
0
votes
1answer
26 views

Can I customise the time shown in the datepicker?

I have a scenario where users are to book sessions with date and time. Currently, I am trying two ways to enforce unique values for date and time. I added a date picker. I added a formula to validate ...