3
votes
0answers
32 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
40 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
67 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
27 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
46 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
76 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
33 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
64 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
53 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
35 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
58 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
107 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
69 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
45 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
34 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
105 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
27 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
503 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
62 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
305 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
1answer
239 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
128 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
100 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
283 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
32 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
47 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
112 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
46 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
768 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
264 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
384 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
668 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
265 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
55 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
165 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
314 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
1k 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 ...
4
votes
1answer
182 views

SP.UI.Status anonymously inaccessible

Using Office 365 (SharePoint Online) I have stumbled into an annoying thing. Some parts of the JavaScript CSOM does not seem to be accessible when your browse the site anonymously. If Firstly I tried ...
1
vote
3answers
4k views

How to authenticate user in sharepoint online using javascript

I have one sharepoint online 365 site. In that one public site will be there. In that there is sign-in option. Generally When ever user clicks on signin it will redirect to microsoft login page. But i ...
1
vote
0answers
156 views

How to add a choice field in JS Grid control

I need to add a choice field (dropdownlist) in each row of a JS Grid control. What is the PropertyID for a choice field. How to add a dropdown. Please assist. i tried like this,but this didnt work ...
0
votes
1answer
595 views

SPO - /_vti_bin/lists.asmx returns Error 500

I am currently developing a news scroller/ticker in SharePoint Online (Office 365) and am using the follow script to access a list: var emptyResults = "<li>No current ...
1
vote
1answer
4k views

The property or Field not initialized exception even I request explicitly

I'm using the following code to get the user permissions on a list item in javascript csom context = SP.ClientContext.get_current(); var field = ...
0
votes
1answer
155 views

Editing SPO 2013 Master Pages - no effect and where do you place javascript code block?

I'm trying to add a jQueryt block to oslo master page on spo 2013. check out, make changes and save, but no apparent impact. Am I placing javascript in the wrong place? do I need to do any additional ...
0
votes
0answers
61 views

field 'choices' not initialized not requested

Hi im using the following code to get choices of a Choice site column. some times Im getting 'Chices' not initialized error in console. var searchtaxonomy_context = SP.ClientContext.get_current(); ...
0
votes
1answer
129 views

Loading ECMA script API / Access sharepoint from web site hosted externally from sharepoint

I'm developing a web application externally from sharepoint online 2010. As part of the application I would like to allow users to access documents from a document library. Ideally users would click ...
0
votes
0answers
163 views

How to Set jquery Ui Date picker value to Sharepoint Date and Time field using ecmascript

I am creating list and adding items. It is working fine. when I try to update the list Date and Time field with the jQuery UI date picker values, I am getting the below error Column 'CustomDate' ...
1
vote
1answer
1k views

Default Sharepoint 2013 client-side people picker to current user

I'd like to be able to default the client side people picker for SharePoint 2013 to the current (or any) user. I've read the "How to" MSDN document here: ...