1
vote
1answer
19 views

Return to last page visited

I have Sharepoint in Office 365. The site is set like this: Home>Training>Training Request Form. I have it set so that, on submit, the Training Request Form displays a thank you and a link that ...
1
vote
0answers
13 views

Update Custom Field in Task Project Online

Hello I found this article: Updating Project Server custom fields via JSOM. This article explain about how to update custom field value in Project. In my case, I am trying to update custom field ...
0
votes
0answers
21 views

Send data from textarea to SharePoint list with javascript

I have created a SharePoint app for a form with textarea boxes. Now I want to send all data that I have written in the textarea to SharePoint with javascript. Every textarea have a unique ID and I ...
0
votes
0answers
15 views

Error posting a REST request via cross domain library - Cannot handle Taxonomy Field Value

I have an app that updates a list item then starts a workflow on it. It was working fine, then stopped working the other day. It has started throwing an error regarding Taxonomy fields, but I am not ...
1
vote
1answer
67 views

CRUD Tasks using Javascript via REST OData

I've looked this post to build CRUD process using Javascript via REST OData. I've have managed it for Risks and Issues list. But, I haven't succeeded for Tasks item. What's the difference between ...
0
votes
2answers
38 views

How to add content above list view using JS?

I am using JSLink code I found at Office Dev Center to modify my fields showing percent values to display progress bars. What I would like to do further is add some text above the list itself, ...
-1
votes
0answers
52 views

Javascripts Conflict

I have two scripts on my SharePoint page that has jQuery inside and JSOM. One of the script only works if the other script have not been added. I get this error code: Uncaught Error: The ...
0
votes
0answers
6 views

Provision WebPart from Appdomain

I can provision and install a webpart on a page from the app-domain, but its always invisible. I see that the webpart have been added in Web Part Page Maintenance (?contents=1). But i cant edit the ...
0
votes
0answers
18 views

Reading a SharePoint list from an on-prem farm from SharePoint Online no Apps

Been going mad for the last couple of hours trying to do what I thought was simple. I have a CEWP on a SharePoint online site. I am trying to make a javascript REST call to a SharePoint list that ...
2
votes
1answer
53 views

How create Sharepoint online site with custom template?

I need to create site in SharePoint Online from SharePoint hosted app. I used code like this: var webCreationInfo = new SP.WebCreationInformation(); webCreationInfo.set_webTemplate('STS#0'); ...
1
vote
1answer
63 views

Changing client web part properties Title/Description with diffrent languages

We want to change our client web part Title and Description depending on Supported locales(languages). The Validation checklist for apps: ...
1
vote
0answers
40 views

Upload using JavaScript, outside Sharepoint

Is it possible to upload a file to SharePoint 365 / OneDrive Business, using pure JavaScript or jQuery, when running from an external website? (Not a SharePoint site) I have written some C# code, ...
0
votes
0answers
52 views

Get selected item ID from Ribbon buttons Element.xml file

Im using sharepoint 2013 online and want the id of selected items is it possible to get the id from this line in the Elements.xml and if so how do i do it? ...
0
votes
1answer
25 views

How do I retrieve a user's LogIn name through the Created By colum using javascript

I have a requirement to retrieve the user email from created by column. I have tried with get_lookupValue(), but I got system object error message. Is there any solution to retrieve the user email ...
1
vote
2answers
255 views

Get list ID and selected item ID

I use SharePoint Online and working in Visual Studio with SharePoint hosted app I need to get list id and the id of the SELECTED item in the list And i use a ribbon button to show a dialog and want ...
1
vote
1answer
83 views

REST API ItemCount on oData BCS List

I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic ...
2
votes
1answer
50 views

Open docx file in Word (client) from hosted app (SP 2013)

I have a client hosted app (written in Javascript) which includes links to documents in a document library on the tenant. If I point the url's straight to the documents, they simply download. What I ...
0
votes
2answers
29 views

Apps showing as subwebs

I'm listing the subwebs for users in an SharePoint app. The thing is that the app also is showing my sharepoint apps as subwebs, how come? Ex: Subweb #1 Subweb #2 App Code: var ...
1
vote
0answers
22 views

Create folder inside site assets

How can i create a folder inside site assets from a app? Here is my code, it says that folder item is undefined. var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var ...
0
votes
1answer
27 views

access the contents of a sharepoint list and update it

My problem is how to access the contents of a sharepoint list and update the contents by a button "Save" of another list that it have the same field. I'm working in sharepoint online using ...
0
votes
1answer
24 views

extract data from a textarea of list and put it into another textarea

When I want to extract data from a textarea of list and put it into another textarea , I have the problem of div. it look like this when my information appears I want to remove the start (div) and ...
1
vote
1answer
55 views

SharePoint 2013 Online Search Query for Site Collections

I wonder if It's possible to get all my site collection names or paths in Javascript, Visual Studios. I've found them through REST when I put server/_api/search/query?querytext='sharepoint' in the ...
0
votes
3answers
45 views

extracting data from list to form

I made a custom list and in the other side I made a apps, in fact it is a form that I have done with html + css + JS using visual studio and deploying my solution in sharepoint online. my question is ...
0
votes
1answer
199 views

request failed unexpected response data from server null

My objective is to read and extract data from list created in SharePoint site and put it in another list of the same site. Firstly my problem is that an error message appears where I deploy my ...
1
vote
2answers
137 views

Access an item in a list in a subsite with Javascript(Solved)

function Testing() { var context = new SP.ClientContext('/Testing'); documents = context.get_web().get_lists().getByTitle("Site Assets").getItems(); context.load(documents); ...
1
vote
1answer
69 views

Editing Managed Metadata List columns using JavaScript

I am attempting to update a list outside of my app web. When I find the list, I am finding my column, then casting that into a TaxonomyField. The purpose of casting is to be able to play with ...
0
votes
1answer
177 views

SP2013 online : set_formDigestHandlingEnabled Error

I get the error : Object doesn't support property or method 'set_formDigestHandlingEnabled' when I try to get the current SPContext object from javascript code in an Office 365 site. I am ...
3
votes
1answer
167 views

Suspend and resume SharePoint Online workflow using CSOM - Ecmascript

I have a requirement where the Master user has power to interrupt any workflow and put it on hold and the approvals should be stopped on that workflow until the Master user resumes the workflow. When ...
0
votes
2answers
99 views

Office 365- Accessing lists refers wrong URL (URL/App name)

I'm new to NAPA tool. I started to build simple apps using NAPA tool. And I tried to access a list in office 365 site using below code. After I publish the app it shows an error message: Message: List ...
0
votes
2answers
459 views

Undefined SP.ClientContext

I always get undefined on my SP.ClientContext.get_current() I have tried with this code: SP.SOD.executeFunc('sp.js','SP.ClientContext',runthiscode); function runthiscode(){ ...
0
votes
0answers
31 views

Custom template with CEWP fix settings for navigation inheritance

I'm using a custom template for creating new project sites. In this template I've a CEWP with client side script that fixes the global navigation inheritance (inherit from parent). When I create a ...
3
votes
1answer
156 views

Get MySite URL using ECMA

I am trying to get the URL of the logged in user's Personal site from another site collection. I am working on SharePoint 2013 online and using ECMA.
5
votes
1answer
208 views

Configure Navigation Inheritance when create site with Rest API

I wonder how do I keep the navigation bar of the parent site when I create a subsite. Below is the code I'm using to create the subsite and thought it might be some parameter that I could use to do ...
0
votes
0answers
69 views

How to use the file data downloaded by REST API

how can I use the $value downloaded by the REST API? $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + "')/$value", type : "GET", ...
0
votes
1answer
141 views

Copy a file from the RootSite to a SubSite

I'm trying to add a file from a Rootsite to a SubSite using REST API. There some code: $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + ...
0
votes
0answers
106 views

How to Remote Authentication to SharePoint Online using Javascript

I am trying to "Remote Authentication to SharePoint Online using Javascript" as given in the following link But have not been able to successfully authenticate against SP Online. Getting ...
0
votes
0answers
58 views

User or Group field SharePoint 2013

I have a field in a list that is a group or user field with multiple user choice. Now i want to check if there is 3 users in that field, i want to check if the current logged in user is equal to the ...
0
votes
1answer
74 views

Create a library when an item on the list is created

I want to create a document library in o365, when an item is created on the list, but i cant get rid of the error: Unable to get property "apply" of undefined or null reference. Here is my code: ...
0
votes
0answers
18 views

Hide Elements on topnavigation

I have a metadata navigation dropdown in SP 2013, How can I hide a specific element with a specific title?
2
votes
1answer
194 views

Get event date in SharePoint calendar with Javascript

I'm trying to get some information from an event from a SharePoint Online list (ex. events start date 25 june 00.00). When I get the results back in a array with JavaScript it returns 25 june 02.00 ...
0
votes
0answers
164 views

SharePoint csom set_item limitation

Is there a limit on set_item with csom ? If i add a third: olistItem.set_item("Body", "test"); It doesn't work var theList = clientContext.get_web().get_lists().getByTitle('userData'); ...
0
votes
1answer
53 views

Remove List Item Author

I need a feature that would allow users to submit complaints anonymously. I was thinking of saving complaints in a SharePoint list, the problem is that Author needs to be empty in order to be ...
0
votes
1answer
52 views

Charting Components For Sharepoint 2013 and Office 365

I am currently searching for some clientside charting components that are free that we can use to display statistics etc. Could anyone recommend any that are available. If they have the capability of ...
1
vote
1answer
258 views

SharePoint Online, javascript get user properties

I'm trying to get some user properties and alert them (I'm going to put them i labels later but just for now I'm using alert). I'm using a content editor with this code: ...
0
votes
0answers
34 views

Events not firing inside popup dialog

I have a popupdialog created like this: var options = { title: newsArray[i].Title, autoSize: true, ...
2
votes
1answer
1k views

SP.RequestExecutor on SharePoint online

I deployed an App SharePoint hosted. I am using SP.RequestExecutor and it is working fine on SharePoint premise. but on SharePoint online it is not working. I added the library using this: ...
0
votes
1answer
73 views

Script in webpart freeze the whole site

I have a JavaScript in my script editor that on page load freezes the browser . I can't use SharePoint designer to remove it because the script is in a script editor. I have tried disabling JavaScript ...
0
votes
2answers
647 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
0
votes
2answers
593 views

Add item to list using button

I try to create button that will be add item to the list. Unfortunately I do somethings wrong. My programming skill's are at beginner level. I have list "List" with only one field Title (for test) - ...
1
vote
2answers
428 views

How do I get my JS to work on sharepoint online?

I'm trying to run a simple script on a document library on a team site. I'm quite new to doing anything with sharepoint other than using OOTB features, so forgive me if this is a painfully simple ...