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,489
questions with no upvoted or accepted answers
0
votes
1
answer
256
views
Connect to SharePoint data with JS
I have following link that have XML data from SharePoint
http://appsrv/pfa/_api/ProjectData/Projects?$select=ProjectName,ProjectStartDate,ProjectPercentCompleted
and I have a username & password....
0
votes
1
answer
80
views
Retrieve users into particular group using Javascript
I have created 2 groups(epm and mobile). I inserted some users into particular group.
How can I retrieve users based on current group?
For example in a dropdown if I choose emp group I want to show ...
0
votes
1
answer
108
views
How to find and replace specific words on a 2013 Community Site?
When you create a new Community site, you'll see the Discussion list. Just above that is a button where it says "new discussion". Below that is a view called "My discussions". See screenshot below.
...
0
votes
1
answer
1k
views
where to put C# code and where to put Javascript code in .aspx form in SharePoint Designer
I am newbie with sharepoint, struggling but finding my way.
I have created a list and created a new form called NewFormRequest.aspx in SharePoint designer.
I am calling this form in the browser:
...
0
votes
0
answers
44
views
javaScript appendChild property
var selectOption2 = document.createElement("option");
// alert(selectOption2);
selectOption2.value = results[i].Name;
alert(selectOption2.value);
selectOption2....
0
votes
0
answers
393
views
Create new OneNote notebook from template with filename using JavaScript
I'm currently in a use case that I need to create a new OneNote notebook on SharePoint from a template notebook.
I'm coding in Java (web) and for the moment I have this code :
Clients.evalJavaScript(...
0
votes
1
answer
101
views
Cascading dropdown with long texts(string)
I have a scenario where on selection of service, I am filling services description drop-down, which is working fine. But, since the description is having lengthy texts it looks really ugly. Is there ...
0
votes
1
answer
469
views
Create a new custom content type document in managed content type library via CSOM
I would like to add a couple of custom content type documents to a library that has managed content types enabled via 2013 CSOM. Most of the documentation I have seen shows how to upload documents to ...
0
votes
0
answers
528
views
Async webpart - the best approach to access outer data source from webpart
I've already tried to search the web but I always get to some point from which I don't know how to get further.
I have a Visual web part which needs to load data from external sources (different ...
0
votes
2
answers
344
views
Get user properties using JavaScript for use in InfoPath - SP Online
I followed this blog - Pass user information from SharePoint 2013 to InfoPath 2013
It's a really good solution and works well but I want to expand it and get the users department and office location.
...
0
votes
1
answer
47
views
How to add Content Types List on a Page and use it to create NEW document/list based on type selected?
I need to show all content types in a drop-down or as hyperlinks along with description on custom .aspx page. When user selects any type, respective New Form should open to create a new document/list ...
0
votes
1
answer
1k
views
How to have a list auto update once a week and then email the people in the list?
There is a meeting that occurs every week, but has a rotating list of members. So one person from each department goes one week, and the next week it is a different person from each department, and so ...
0
votes
2
answers
1k
views
Populate a Word Template with Dynamic Data From a HTML Form on a Sharepoint Page
I have a SharePoint site. What I want to do is:
1) Upload a Proposal Template and create an HTML form that allows our sales guys to enter customer details
2) Allow the sales guy to select some options ...
0
votes
1
answer
395
views
SP2010 - CEWP not executing javascript until page refresh
The CEWP is loading a HTML page stored in the Site Assets library. The HTML contains a few inputs and some Javascript.
Javascript is:
Function myInit(){
console.log("here");
Ctx = new SP....
0
votes
0
answers
365
views
Javascript Conflict on Visual Webpart when adding multiple times with different webpart properties on single page
What I am doing:
I am retrieving list items from list using javascript as per visual webpart custom property. I have created a dropdown in webpart editor part from where I am getting site url. As per ...
0
votes
1
answer
196
views
o365 SharePoint Online .. Write to List on another site with Tenant (all sites) NAPA app? Forbidden Error
Is it possible to write to a list on another site from NAPA developed App on o365 SharePoint Online.
I have a simple app that can write to lists on the host web by fully qualifying the list, but i ...
0
votes
2
answers
646
views
CSOM Search Api error: Unable to get property 'ResultRows' of undefined or null reference
The code below is working fine in my dev machine but the moment I tried to test it on our customer's server, I started getting errors.
I started having errors with SP.js. So I used the
<script ...
0
votes
1
answer
134
views
Cannot run ajax javascript code
I try to run the below javascript code but it does not work. (it does not return the alert pop up) I put the url string into a browser, it return the item info. So, I assume the url is fine. And ...
0
votes
1
answer
475
views
How to display Search API results like SharePoint OOTB list with filtering, sorting, paging
I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any jquery/...
0
votes
0
answers
129
views
SharePoint hosted app submit multiple items to list
I am developing a SharePoint 2013 hosted app and I currently have a 'repeating' table that is being cloned each time a button is clicked.
I currently have three tables which all submit to separate ...
0
votes
0
answers
169
views
App for Office (Office Add-in) Web Page Possibilities
I am trying to develop a task pane add-in for Word. Everything online says that at a minimum, the add-in requires a web page, javascript file, and a manifest.
Does the web page have to be done in ...
0
votes
0
answers
1k
views
Using d3 in sharepoint web interface
I am building a website for a research center under my university domain. I am trying to create a data-driven document, with autoupdate based on lists. Yet since server-side access to sharepoint lists ...
0
votes
0
answers
614
views
Commit using JavaScript
I 'm looking for a solution to submit an item using JavaScript for a button already placed on the form like this.....
$( "#ctl00_m_g_a8a7fbc3_43a2_4418_83f6_b76759ed345a_FormControl0_V1_I1_B4").click(...
0
votes
0
answers
182
views
SharePoint 2013 - Verify Active Directory security group membership in Master Page javascript
I desire to add some JavaScript that will verify the current users AD security group membership. If a member of group 'A' the logic will redirect one way. If not in group 'A', but in group 'B' the ...
0
votes
0
answers
29
views
How to reference and dynamically display documents based off of input on a form
I'm using Sharepoint 2013.
I'd like users to be able to select a series of drop down boxes of categories and have a list of documents automatically filter based off those choices. I'd also like to ...
0
votes
0
answers
295
views
Select2 in Sharepoint Application Page
Have a Sharepoint application Page where I use Select2 4.0 for Searchable Dropdown List.
On my development PC everythink works fine but on any Client the CSS seems to be broken (Both use IE11).
On ...
0
votes
1
answer
124
views
Show Dialog when Input value changes
I am working on a Sharepoint application Page to Uplaod a File to a document libary. The Upload can take a bit of time so I want to display the waiting for it Dialog. I check if all requiered fields ...
0
votes
1
answer
495
views
How to display Sharepoint online office 365 site in aspx page
I have created an ASP.net web application where I am trying to display a SharePoint Office 365 online site through iframe.
I am getting an error
XFrame cannot be set to same origin
How to display ...
0
votes
1
answer
478
views
REST API Search images
I'm doing a simple REST request to the SharePoint API and it seems that it doesn't retrieve images or videos, should I add something specific to the query text in order to have images and videos in my ...
0
votes
1
answer
2k
views
CSR Error: Cannot read property 'style' of null
Trying to color rows based off of the value of the "Status" column
However I cannot get it working as it keeps giving the following errors:
TypeError: Cannot read property 'style' of null
...
0
votes
1
answer
1k
views
how to change Sharepoint 2013 Default Sign-in Page and create Custom Page (normal.aspx) which redirects users to Http handler(test.ashx page)
Sharepoint Default Sign In page should redirect to my Custom HTTP Handler test.ashx code.
I configured multiple claim authentication in sharepoint server 2013 and I need to by pass multiple ...
0
votes
1
answer
368
views
Can SharePoint objects like 'SP.ClientContext' be used while developing Office 365 Mail Addin in Napa?
I am developing a Office 365 Mail Addin in Napa. I am trying to use the object of SP.ClientContext but it shows me error that SP is not defined.
Office.initialize = function (reason) {
$(document)...
0
votes
0
answers
404
views
Create Web Property in Web Property Bag in SharePoint Site using REST API
I want to add one Web Property to sharepoint sub site using REST API.
Is it possible or feasible using REST API?
0
votes
1
answer
325
views
Check field change in own edit form
We have a list with 3 different textfields (textfield 1, textfield 2, textfield 3) and 3 different datafields (datafield 1, datafield 2, datadiels 3).
We work with a own edit-form.
Now i want to add ...
0
votes
2
answers
153
views
Create a Homepage for TeamSite with SharePoint 365
What I am doing is to set the Home.aspx as the Homepage for my TeamSite. I've added a Web Part as Script Editor and put the jQuery script as below to remove or hide the left menu and the Home. However,...
0
votes
0
answers
276
views
Can I customize Alert Me setup dialog
I am working on SP2013 on-premise standard edition.
When clicking "Alert Me" button on ribbon, the default SubNew.aspx form will be called. I need to customize the form a bit so that:
When setup ...
0
votes
1
answer
2k
views
Add a "add Link" to a Content Editor Web part
I have used a Content Editor web part to display a scroll-down list of links.
The code I use is similar to this:
<select id="mySelect" jquery110205452414735412181="1" ...
0
votes
1
answer
1k
views
Group by field using jQuery
Say I didn't want to use the Group By option in an out of the box view to group my list by a certain field.
Is there a way to achieve this using jQuery, JavaScript or something other front-end code?
0
votes
1
answer
580
views
How to read Data from App web and write data to a host web by making REST calls
my Question :How to read/copy Data(images folder) from App web and write/Upload data to a host web (Picture Library) by making REST calls with the cross-domain library.
i have Created SharePoint ...
0
votes
2
answers
123
views
How to save item into list only once?
I am trying save the below into list in SharePoint, but each item is getting saved twice. I need to save only once. What's wrong?
function sumcalval() {
alert("save function called");
var ...
0
votes
1
answer
1k
views
How to get Sharepoint 2013 variation URL?
I want to create a toggle button for variations, so that when I am on the en or fr page, and I click the button it takes me to the other page. But I can't just change the en to fr, for example, ...
0
votes
0
answers
887
views
Issue facing for Sharepoint online Authentication using javascript
Using the code functionality in the link Code to authenticate SharePoint online users using javaScript. I am facing an issue that- ajax call for Microsoft Login service which uses a soap request , ...
0
votes
1
answer
122
views
Customized list form vs javascript & html solution in SP2010
I have one requirement in which we have to enter the q1,q2,q3,q4 details for 3 consecutive years for three categories, that means total 36 fields. There are some other fields similar to this. So total ...
0
votes
0
answers
85
views
pop up info tab for custom list in sharepoint 2013
I am looking for a pop-up something like in the picture. (column info)
Is it possible to use calculated column or Client Side Rendering for this kind of requirement.
Anyone who have any idea ...
0
votes
0
answers
445
views
How to add events to Ribbon Buttons
I want to add custom actions to my save or check-in buttons when a page is in edit mode.
The IDs from the buttons I want to add events:
Ribbon.WikiPageTab.EditAndCheckout.SaveEdit.Menu.SaveEdit....
0
votes
1
answer
22
views
Custom property for people profiles
I have added 1 new property to people profile named "DepartementTest" and filled it out foreach user. I have added my new property to my custom display template. I have built a people-dictonary and ...
0
votes
0
answers
1k
views
Set client side choice field to stored value via JSOM
I am using Angular on top of SharePoint for an application. One of the fields I have is a choice column. I am able to get the values and store them in SharePoint/accessible via REST in my create form, ...
0
votes
1
answer
92
views
Unable to change a file's fields via REST
I've gone through quite a few blog posts, StackExhange/-Overflow questions, and also Microsoft's documentation, but I'm just unable to change the fields of a file via REST in Sharepoint running on ...
0
votes
0
answers
146
views
Telefon mask - Sharepoint 2013
How to write a telefon mask in Sharepoint +48 xxx-xxx-xxx.
Does anyone know about it. The telephone mask should be on a field.
0
votes
1
answer
478
views
Disable a site collection column inside lists's quick edit grid
I read the following link on how SharePoint 2013 supports disabling a site collection column inside the list's quick edit grid link. so I tried to apply the same inside a custom list. So I wrote the ...