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.

learn more… | top users | synonyms (2)

2
votes
0answers
16 views

SP2013: Tabular view incompatible with JSLink checkboxes?

I'm using a JSLink file to replace a "Single line of text" column with a custom checkbox. For some reason, when "Allow individual item checkboxes" is enabled my checkbox won't work - I can't even ...
2
votes
0answers
135 views

Required Field Issue with SharePoint 2010 December 2013 CU

I installed SP2 a couple of weeks ago to fix the issues with my XSLT Compiles timing oot (Which was a Bug introduced in SP1). Things seemed fine, but then a few days later we noticed that workflows ...
2
votes
0answers
112 views

SharePoint Edit Mode Javascript error in edit mode

I am not able to edit the page from the browser. I used to change and edit webparts when suddenly in the edit mode everything looks like it is locked/stalled. When I open the debugger tool, I saw a ...
2
votes
0answers
188 views

SharePoint InputFormTextBox returns javascript error while changing its position

I have created one aspx page for implementing the edit comments of the form. For this I am using the SharePoint InputFormTextBox control. I have a total of 4 Divs each containing one InputFormTextBox, ...
2
votes
0answers
27 views

Instrumenting search term in SharePoint2010

I know SharePoint2013 can capture this data better but in 2010, i am trying to capture exactly what terms people are searching for. I have analytics logic that i can call as javascript. My search ...
2
votes
0answers
224 views

SharePoint and Javascript - Get content types for list

I have been using the JSOM with SharePoint 2013 and am trying to get the content types of a list to iterate through, and am having no luck. First, while the success handler is being reached, the ...
2
votes
0answers
532 views

How to add the standard sharepoint list item context menu?

we have written a webpart that outputs titles of list items. We now want to add to each of those items the standard flyout menu (see the picture) below, but don't know how so far. Can you help us out ...
2
votes
0answers
691 views

Filtering SharePoint list items that have multiple values using jQuery

I have a SharePoint list that contains multiple columns of information. There’s a Category column that’s a look up to another list called ‘Category’. This is to produce unique ID’s for each of those ...
2
votes
0answers
451 views

Programatically creating Discussion List Posts - and replying to them from Outlook

We are Programatically creating a Discussion List Post/Topic (using JavaScript) based on an entry in a custom list. The idea is to synchronize this Discussion List with Outlook. That does happen ...
1
vote
0answers
27 views

How do you properly write to a managed metadata column from JSOM? (SharePoint 2013)

I am trying to write the value of a managed metadata column across several documents in a document library at once using JSOM, but for some reason the way I'm trying only writes the value to the first ...
1
vote
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 ...
1
vote
0answers
79 views

_spPageContextInfo is undefined in client web part

I have created a client web part for a SharePoint-hosted app that I am creating. The app makes use of the clienttemplates.js library in SharePoint to render user presence (Lync) in the web page. I am ...
1
vote
0answers
25 views

Sequential number generator with a twist

I have an assets list. The asset needs to have an asset number assigned upon creation. The format of the number should be A-99999. There are existing asset numbers I have to work around in order to ...
1
vote
0answers
23 views

To Scroll to the top of page

I'm using angularjs & sharepoint 2013. I have implemented the SPA model in one page where the entire page refresh may not happen. Here, the scroll bar is not always going to the top of page since, ...
1
vote
0answers
19 views

Control Access Request Dialog

I want to write in the text area that there in the control of access request programmatically I take copy of the control from sharePoint and added it in application page but I cann't catch it with ...
1
vote
0answers
117 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, ...
1
vote
0answers
35 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 ...
1
vote
0answers
56 views

White rectangle background when i scroll SharePoint Modal Dialogbox

I'm facing a strange issue. Couldn't find the solution for this on the internet. I'm using a SP.UI.ModalDialog.showModalDialog in a SharePoint web part. Issue: When this dialog box is displayed and ...
1
vote
0answers
23 views

How can I print all the PublishingWebControls:RichHtmlField content inside my EnterpriseWiki.aspx as a pdf file

I am working on an enterprise wiki site collection , and using the SharePoint designer I have manually added a link named “Print to PDF” as follow:- But I am trying to implement the link ...
1
vote
0answers
77 views

Starting a Sharepoint 2013 Workflow via js file

I´m trying to start a workflow 2013 from a custom ribbon icon. I have configured an elements.xml file where I call the Javascript file. The problem is, that I get a JavaScript runtime error “Type” ...
1
vote
0answers
76 views

Error from script tag for sp.runtime.js

I'm working to set-up the PreSaveItem() on an edit form for a list such that it evaluates parameters from the query string, and some list fields to execute workflows based on various criteria. Based ...
1
vote
0answers
70 views

Custom Field RenderPattern Customization - SharePoint 2007

I'm creating a custom field in SP 2007. I need to Get the Custom field value and field properties on Item click, in the list item display view. Also i Need to pass these values to a JavaScript. So, ...
1
vote
0answers
52 views

Unable to get related information from related list and display it on textbox on parent list using logged in user

I have two lists Created for my leave application in sharePoint. I need related information's come from related list (Leaveinfo) and display it on the textbox in Parent list (LeaveApply). I have ...
1
vote
0answers
123 views

Can I change the display name of column in a listview using JSlink

I've a requirement to change the display name of a column in only one view, I've to show 'Responsible' instead of 'Responsible Person'. Is this possible by JSlink ?
1
vote
0answers
418 views

How to get the return value of an on demand executed function?

I have a script file MyScript.js in the folder TEMPLATES\LAYOUTS\MyProject\Scripts which looks like this: var MyCompany = window.MyComapny || {}; MyComany.MyProject = MyComany.MyProject || {}; ...
1
vote
0answers
242 views

Change Ribbon Button Enabled-Function

I want to change the EnabledScript function of a existing Ribbon Button (Upload Document) but keep everything else, like the original CommandAction it executes on click. More specifically I would like ...
1
vote
0answers
481 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
0answers
157 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 ...
1
vote
0answers
123 views

Default.aspx (Reference Error: AddItem is not defined)

So I'm trying to push through learning how to code in the SharePoint environment. I created a script in a text file that i'm calling through a content editor webpart. When I debug the page using ...
1
vote
0answers
74 views

Update CEWP without refreshing page

I have a webpart which contains 3 charts. The charts are built using google's chart API and SPJS Chart The problem I face is that I'm trying to get the charts to seamlessly update as the list gets ...
1
vote
0answers
457 views

How to filter a list view by SP group membership (CAML, JS, anything)

I have a list. I need to filter the list view in SharePoint to show items: created by someone in current user's group show all to admin group I am using Infopath for the list's form view, and ...
1
vote
0answers
235 views

Office 365 Public Website JavaScript Snippets - how to remove

Playing around with Office 365 public website Master Page. Used security trimming to strip down the master page to reduce weight for use in responsive design. Assumption is we would not want any of ...
1
vote
0answers
268 views

Install an app from the appCatalog using javascript CSOM

I'm trying to install an app in a site from the AppCatalog using the javascript CSOM I get the apps from the App Catalog using req.apps = SP.AppCatalog.getAppInstances(clientContext, oWebsite); I ...
1
vote
0answers
200 views

Getting survey list settings (questions, possible answers) via REST

I need to custom render the survey on the client side so I need to be able to get it's settings via a REST (or web service) call. I tried calling Web/Lists(listguid)/Fields and I get all the fields ...
1
vote
0answers
219 views

SP2010 JSOM: error when trying to get all users of specific group using javascript

having trouble getting users return from specified group using javascript per this on MSDN var siteUrl = '/sites/MySiteCollection '; function retrieveAllUsersInGroup() { var clientContext = new ...
1
vote
0answers
239 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
1
vote
0answers
83 views

JavaScript function in URL field value

Is it possible to set the value for the URL field so that when clicked it runs a JavaScript function? I have created a field which stores links to files in SharePoint, but when clicked, the file is ...
1
vote
0answers
240 views

ListData.svc: How to upload attachment?

How does one upload an attachment to a list item using JavaScript/HTL5 file upload API and the ListData.svc API? I know I can do this using managed CSOM but I want to understand the SP 2010 REST API ...
1
vote
0answers
353 views

SharePoint 2010 edit item popup, fullscreen with jquery?

I have sharepoint 2010 portal. In this portal I have some libraries maded by a custom library template. This custom templates shows an example of the pdf file If you open it in the edit form. The ...
1
vote
0answers
46 views

How to create object of type SP.ListItemFormUpdateValue

How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side? If this is not posible, how can i read a value in a ...
1
vote
0answers
56 views

Display New item Icon with SPServices

I want to display the New Item Icon with SPServices or using custom Javascript to show a new item icon for n days when Created. I achieved this using XSL. Thank's to Mark ...
1
vote
0answers
108 views

getting top X items in each folder with a CAML Query

i'm trying to do a visual representation of a document library using javascript and webservices. basically i want to present the folders in the library, with a preview of the first few files in each ...
1
vote
0answers
100 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
1
vote
0answers
181 views

Unable to access the SP2013 App from IE but able to access from chrome

I've started working on SP2013 App development. When I'm deploying the app from VS2012, the App is successfully getting deployed. But after Trusting the app, it is showing "Internet cannot display the ...
1
vote
0answers
263 views

display InputFormSection

Can we hide an wssuc:InputFormSection ?? I have a wssuc:InputFormSection made for adding items and it's only shown when you click on add link as the code shows : <Table border="0" width="100%" ...
1
vote
0answers
126 views

Updating a value of any item in a list based on a selection of bool for one item - jQuery

So I hope this makes sense. I have a column within a list that I want to use as an active flag. There are 5 possible categories and for each category there can only be one active value. So I need some ...
1
vote
0answers
88 views

changing language on application page

I am using following code to change the language of HTML form on application page: <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"> ...
1
vote
0answers
286 views

_spBodyOnLoadFunctionNames.push Not working in firefox

I tried this in firefox i dont know why its not working but it working in other browsers function loadmonth() { alert('called'); } _spBodyOnLoadFunctionNames.push("loadmonth");
1
vote
0answers
366 views

Close window after save editform with Drop off library

I have a problem with closing my explorer window from the SharePoint 2010 listitem editform. I am opening a new explorer window from Outlook. In this window I open the editform from the ...
1
vote
0answers
312 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...