Questions tagged [custom-javascript]
The custom-javascript tag has no usage guidance.
21
questions
0
votes
1
answer
95
views
How to upload Large files using node.js and spsave module
I have implemented multiple file uploads using spsave. But whenever i try to upload larger file(5mb+) files are not getting uploaded.
const apiRequest = spsave(coreOptions, creds, fileOptions);
...
0
votes
1
answer
33
views
Getting Sharepoint URL using JS in a Survey
I am trying to capture the sharepoint page user was on when the click on a Qualtrics Survey. However, using 'document.referrer', i am only able get the part of the URL (.sharepoint.com) instead of ...
0
votes
1
answer
609
views
List Dates Off by One Day
I am having issues with dates in a SharePoint 2013 list.
At a high level I am archiving the dates of the selected item in List1, storing them in List 2. The dates in the selected item are updated to ...
0
votes
1
answer
175
views
Returning REST response to calling function
Is it possible to return the value from a REST response back to the calling function?
In the code below returneddata is always undefined. In the GetMyData function I can see the REST response and ...
0
votes
2
answers
481
views
Clarity on EffectiveBasePermissions object
I recently used some code I found on this site to help resolve a problem. It worked with no issues.
The one thing that is bugging me though is there is a portion of code I do not quite understand ...
0
votes
1
answer
79
views
Jquery not working on dialog box from list view
I am attempting to use some DOM manipulation to change list column names on a list Display view.
However when I use Jquery to create the array I get a null value. My test site has the Dialogs setting ...
0
votes
1
answer
23
views
Collect the latest Modified and Modified By info for each user that has contributed to a list. Javascript?
A customer has asked me to display a table that shows everyone who has modified a list and the most recent modification they each made.
It would look like:
Sally Modified 3 hours ago
Jack Modified 4 ...
1
vote
1
answer
73
views
Relative URL or using _spPageContextInfo
For some reason, relative URLs are not working OR I am using the wrong syntax. I have tried the following with no luck on my CEWP HTML page.
<script src="/jslib/jquery351/jquery351.min.js&...
1
vote
1
answer
76
views
SPServices is not working in one environment and working in one SharePoint environment/
We deployed solution in one SharePoint server, and uploaded the js file after solution deployed. we are getting the following errors on debugging JS.
SCRIPT438: Object doesn't support property or ...
0
votes
1
answer
221
views
Dynamic REST Statements
Is there a way to dynamically create a REST call and specifically I am referring to the data: section of the call. If I get the terminology incorrect by all means keep me honest. I tried some things ...
0
votes
2
answers
149
views
Get ListCount counting only user view list items
I have below code, to fetch the count of sharepoint list items to auto generate next item number by incrementing it. But somehow it's only fetching count of list items per user (list is protected to ...
1
vote
0
answers
114
views
How to convert word document to PDF in SharePoint 2016
Is it possible to convert a word document to PDF on SharePoint 2016 using custom code such as JavaScript ? I have heard of Word Automation Services but I am looking for custom code solutions that ...
0
votes
0
answers
22
views
Offline SP365 aspx page
User is on a mobile device and needs to access a JavaScript application when the device loses internet connection (elevator, basement, etc).
I’m using service workers to cache my files, and plan on ...
0
votes
1
answer
23
views
Edit the saved item as soon as it is saved and navigate to the edit form with a new ID
we have the below requirement to be fullfilled
we have custom button which will save the form and redirects to allitems.aspx, but we need to save the item and navigate to the edit form with the newly ...
1
vote
3
answers
1k
views
Create new array from data.d.results
I am trying to create an array with only the Name properties from a list in SP 2013.
I tried using the push method but it has not worked for me. My console prints out the names in an increment style.
...
1
vote
1
answer
78
views
JavaScript for SharePoint Traffic Light Color
I have a SharePoint site that uses a Traffic Light column to indicate color based on another column, "Due Date." However, we just added a new column called, "Actual Start Date." In the case where "...
1
vote
0
answers
15
views
Update the index of the related object after spice in an object using JavaScript [closed]
There are 2 variables:
var brands =
[
{Brand: "Hyundai"},
{Brand: "Toyota"},
{Brand: "Honda"},
{Brand: "Volkswagen"}
]
var cars =[
{Car: "Elantra", BrandIndex = 0},
{Car: "...
1
vote
1
answer
169
views
Require attached file with column choice selection before saving record
I have a custom list in SP13 with a choice column containing 'Yes', 'No', and 'NA' drop down values. If the column value is marked 'Yes', I want to require the user to attach a related file to the ...
0
votes
2
answers
2k
views
Check if People picker has any value on document.ready of EditForm.aspx in jsom sharepoint 2013
I am trying to set a Person or Group field value only if it is null. I am checking this on document.ready() of EditForm.aspx of listItem, where If its null, then I want to set its value to currentUser ...
0
votes
1
answer
30
views
Retriving SharePoint list column values with Javascript
I have a SharePoint list with a choice column called "Asset Type". The column available choices are "Type 1", "Type 2" and "Type 3". I'd like to build a script that returns (in any way) only the ...
1
vote
1
answer
23
views
Custom Script is not getting applied to 'Find a File' inline search SharePoint 2013 server
I included the following code in Item_Default.html of Display Template.
My javascript is getting called successfully on site Search and it is working fine. but it is not working on Find a File inline ...