0
votes
0answers
10 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
26 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
22 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
34 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 ...
-1
votes
0answers
19 views

Working with Files SPO

How can i check in a file from a folder? Here is my code: var file = hostWebContext.get_web().getFileByServerRelativeUrl(serverRelativeUrl + fileUrl); file.checkIn("checkin comment"); This ...
0
votes
3answers
43 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
27 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
55 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
41 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
43 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
0answers
55 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
61 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
107 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
28 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 ...
2
votes
1answer
57 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
104 views

How 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
48 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
82 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
65 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
46 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
64 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
17 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
133 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
83 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
48 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
42 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
140 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
30 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
644 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
65 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
389 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
348 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
161 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 ...
1
vote
0answers
114 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
3
votes
2answers
348 views

getting Regional settings in Javascript from CSOM

I am creating a custom data entry app in sharepoint using the CSOM. I need to update the default value of a datetime field, I can get the default value but the datetime is in UTC Format. I need to ...
1
vote
0answers
34 views

Sharepoint Online - Image Position in RichTextEditor

I have a custom site with a list of posts (something like a blog, but not the standard sharepoint blog), and I'm having an issue with the RichText Editor and images. The issue consists in inserting ...
0
votes
0answers
53 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
1
vote
2answers
121 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
2
votes
1answer
48 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
3answers
1k views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
1
vote
1answer
346 views

Create control to upload Attachment to list in SharePointOnline

I have a custom webpart page which is used to enter some input data which eventually gets saved as a List item. Now i want to add a control to that page which enables user to upload attachments to the ...
0
votes
2answers
491 views

How to cast a date column value in JSLink javascript, and how to increase this date variable?

I am using sharepoint 2013 online. I have created a custom list. On this list I have used JSLink to show an icon in a column. I would like to do some logic to show a red or a green icon. I have now in ...
0
votes
2answers
819 views

How to deploy a custom JavaScript file to Style Library from SharePoint Apps?

I want to do some java-script operation on a custom list in SharePoint 2013 Online version. So I am creating a separate java-script file and deploying to Style Library manually. Does anybody know how ...
2
votes
2answers
287 views

SharePoint 2013 Organization Chart [closed]

im in need of help here. I have to render this code from a sharepoint list instead of this json string. How can i do that? Heres the link to the chart: http://librerias.logicas.org/lib_gg_orgchart. ...
1
vote
2answers
1k views

SharePoint 2013 Display Templates - Load Javascript BEFORE rendering search results

This is my problem and please let me know if I am approaching it incorrectly. I have a list called "document classes" that holds information such as the retention and revision periods for documents, ...
0
votes
0answers
56 views

Retrieve Profile Picture with REST

Hi i would like to show the profile pictures of the user that have created the item in a list, here is my code: <script type="text/javascript"> $(document).ready(function() { var ...
0
votes
1answer
98 views

Create a radio button filter based on “Created Date” attribute using jquery or javascript

I’m currently loading a number of list items through a customised Content Query Web Part. And XSLT attribute associated with each of these items is the Created Date. An example of the mark up ...
3
votes
1answer
171 views

Get rid of Horizontal Scrollbar on SharePoint Online Public Website?

On my out of the box public website have a horizontal scrollbar I can't find the source of. No matter how I try to find it's origin, I'm having trouble getting rid of it. It may be an error in the ...
0
votes
1answer
344 views

Call executeQueryAsync method second time gives first time result

In the code I tried to get the data from 2 different LIST. Input of the second query will be done after executing first list. $(document).ready(function () { $("#SearchButton").click(function ...
7
votes
4answers
2k views

How can I disable the Document Library drag and drop function?

Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it. We're using SharePoint online and I have amended the SharePoint out-of-the-box document ...