0
votes
0answers
49 views

Use jQuery to make a “column” on the default view?

I am trying to append a value to the end of each row by selecting the number value in one column to do some sort of math with it and output the value on the other one. This code works for me on one ...
0
votes
1answer
28 views

Retrieve list item information using path

Using: SharePoint 2010, JavaScript, jQuery 1.10.2, SPServices In SharePoint 2010 I have a custom (JavaScript-based) page where users may type in text and link to items in SharePoint lists. A recent ...
0
votes
0answers
16 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 ...
0
votes
1answer
24 views

Sharepoint list to XML including the headings?

We store data regarding Scrum sprint retrospectives in a SharePoint list. I have to create a chart for visualizing this information (which is not part of this topic/problem), so I need to somehow ...
0
votes
1answer
45 views

collection has not been initialized after dialog modal closes

I have two JS scripts on my SharePoint 2010 page, one in the master page, one in a forms web part (I've attempted this with a CEWP as well). Both are in unique name spaces (My.Tabs and ...
1
vote
2answers
44 views

Best way to implement “.exists”-type functionality to prevent duplicates?

I'm moving files with spservices (the jquery plugin) and was wondering if there was a good way to check to see if a file with the same name already exists so I can append an underscore or something ...
0
votes
3answers
98 views

Use CAML query based on ID to retrieve a file name?

With jquery and spservices, I use getSelectedItems to retrieve the IDs of a few documents. Can I have a loop which goes through a caml query for each of those IDs to retrieve the file name ...
0
votes
1answer
39 views

Proper way to check for failed SPServices call?

I'm running a SharePoint method with SPServices that should copy several items. I just noticed that the return value is "Success" even when I've specified an invalid location and nothing has actually ...
1
vote
2answers
64 views

If I have several items' IDs, how can I use that to retrieve a specific field value?

I have used (in a for loop): var itm = mylist.getItemById(id); I tried using context.executeQueryAsync , but I read that I can't use this to store or return global variables. The only examples I ...
1
vote
0answers
19 views

Disabling the Links on the Picture Library Slideshow webpart. or ammending the code to open the link in the same window [duplicate]

I am using SharePoint 2010 Picture library Slideshow webpart. But want to disable the link from opening in another window. I have used the following code succesfully to change the image link to the ...
1
vote
2answers
32 views

Custom List without CreatedBy / ModifiedBy through WebUI/SPD/Javascript

Is it possible to create a truely anonymous list without the created by and modified by columns defaulted, like if someone wanted a suggestion box? Specifically is it possible to do this in SP2010 out ...
3
votes
1answer
55 views

launch ribbon action with ribbon hidden

I didn't find anything to help me out, so I'm asking your help. I work with sharepoint 2010. I have a team Site where the ribbon is hidden. (never trust users, thay are evil :p ) On this team site I ...
2
votes
1answer
30 views

How to store “stream” and “fields” paramters properly

I'm trying to use the GetItem method to use for copying documents, but I'm not having luck with the field or stream parameters. Below is an example of how I attempted to store each of them. When I ...
3
votes
1answer
85 views

JavaScript Validation in ECB for out-of-the-box menu items

Is it possible to add some kind of JavaScript validation to ECB items like Edit Item, Check Out and Workflows? What I want is a simple JavaScript alert and redirect to the list if the clicked item ...
2
votes
1answer
76 views

how to hide a multi select lookup column based on a drop down value

With the following code I am able to hide a normal lookup column based on drop down, But multi select I am not being able to In multi select the identifier is SelectCanditate;SelectResult Should I ...
1
vote
2answers
192 views

Auto populating a text box based on listbox selected value and drop down value javascript sharepoint

I have a list named "Assigning to Individual" which has a drop down 'Initial Training' The values in the drop down are Immediate, Hire Date, Specific. There is another textbox Date There is a ...
2
votes
1answer
111 views

Using javascript/jquery to modify the display form?

I have a js file which retrieves a value stored in a date field and then calculates the remaining time in weeks/days. My issue is that this works on the edit form because I send the value in with ...
0
votes
3answers
124 views

jQuery globalization in SharePoint 2010

jQuery UI and validation are strongly dependent upon regional settings. Consider for example a date validation or a number validation, it cannot work irrespective of the current locale. For this ...
1
vote
3answers
181 views

Get value of lookup field

I have a cascading lookup using two lists on my SharePoint 2010 site. I want to get the value of first selection made in the lookup and show/hide other fields on my custom form based on that first ...
2
votes
1answer
76 views

SP Changes Code in HTML Source Edit upon save

In a sub-site, I input HTML through the WI using the HTML Source edit button in the ribbon. This is what I enter: <a onclick="javascript:NewItem2(event, ...
0
votes
1answer
34 views

Using Pop-Up New Item Input of List from main site in sub-sites

I can use the following JS code on my main site to create an image link to pull up an input page just like when you click on the "+ Add new item" at the bottom of a list: <a ...
1
vote
3answers
165 views

SharePoint Webpart development using SPA or JavaScript library for better performance

We are looking at using combination of MVC4 and JavaScript libraries like Knockout and/or Breezejs for providing SPA or better navigation and performance within SharePoint 2010 environment. I am ...
2
votes
0answers
113 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, ...
1
vote
2answers
313 views

Hide Column With Javascript Sharepoint 2010

I have a list with these columns Question, answer, Issue, Top FAQ, Summary, Q.No. The list is in a webpart on a wiki home page. When the user clicks on the link it brings all fields up. What I want ...
1
vote
1answer
104 views

SP2010 Javascript Object Model: programmactially add calculated column to list

I am building lists and adding fields via the following. I am wondering if I can add a calculated field and how you set the formula in this (or another method): function onCreateRootCause() { var ...
0
votes
2answers
234 views

Start Workflow programmatically

We work with an Doc Library which receives the files via E-Mail. This works great, but now we want to change the filename via workflow. The problem in this situation is that the workflow doesn't start ...
0
votes
1answer
50 views

SP2010 JSOM: when creating field using javascript, how to define date only instead of date & time

I create a list using: function createProjectList() { var clientContext = new SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var listCreationInfo = new ...
1
vote
2answers
342 views

SharePoint 2010 - Create link to document library content type

Have a document library with multiple content types, each using a template. Example, user click on 'New Document' > 'Content A' and a Excel form will open. I'm trying to create links (buttons to be ...
0
votes
2answers
118 views

Ribbon Button activating when a field in the Document / List item metadata = 'Yes'

Im hoping this is an easy answer as Im sure it must be, but my mind has gone blank! Basically I have created a button to run some javascript code to fire a custom (manual) workflow on an item that is ...
3
votes
2answers
237 views

How do I programatically change the default value of, or remove from default view, title column using javascript?

Using the JSOM in SharePoint 2010, if I am creating lists programmatically using something like: this.myField= oList.get_fields().addFieldAsXml('<Field DisplayName=\'Key\' Type=\'Text\' />', ...
1
vote
1answer
404 views

Retrieve Iist Item column values with column names on Item click, JavaScript

I need to retrieve List item column values with column names on item click. In SP2010, I have a XSL which calls the JavaScript. I have sent the list item id through the XSL into the JavaScript ...
0
votes
1answer
771 views

Add item in SharePoint 2010 document library using JavaScript [duplicate]

Is it possible to add a new item in a SharePoint 2010 document library using JavaScript (client object model)? I have successfully created list items in other type of lists, but when it comes to ...
0
votes
0answers
23 views

Unable to run Sharepoint-specific JS referenced in embedded webpart

I have a script that I'd like to run on a specific List view. Per the instructions found here, I added a new web part to the NewForm.aspx page and added the appropriate HTML to link to the desired ...
0
votes
1answer
68 views

Additional page head delegates with 2 scripts

I have a question regarding the additional page head delegate control. Basically this delegate controls helps to register some scripts in my case. But i have 2 different additional page head delegate ...
0
votes
1answer
104 views

JavaScript OM to Approve Designer Workflow Task

I have a SharePoint Designer 2010 approval workflow and I am attempting to approve the tasks via JavaScript Client Object Model. I am able to change all of the fields to "Completed"/"Approved" but the ...
0
votes
1answer
315 views

SharePoint 2010 Modal Dialog on Page Load

I have created an application page that mimics an input form. This form will eventually go into an SP List with other forms. What I'm after is when a user clicks the link to the form from the SP ...
1
vote
1answer
70 views

Should I use ECMAScript from within a user control or visual web part?

It seems to me that I could use ECMAScript from within a user control or a visual web part, but which is the more efficient in terms of resource use, speed etc?
1
vote
3answers
214 views

Using javascript to apply “noindex” to get SharePoint to avoid crawling certain content

I have a problem with navigation elements being crawled on our SharePoint site. These elements come from a custom control that's used for building the site navigation, so the output is just html that ...
0
votes
1answer
117 views

Sharepoint 2010 Javascript Client OM, get user data (not current user) via javascript object model

There are plenty of examples of getting the current user via javascript object model in SharePoint 2010, but I am looking for help with getting any users email/title when I have the loginName. There ...
0
votes
1answer
546 views

Unable to pass xslt variable in the javascript function

I have added an icon before the image title in asset library. I want to pass the name of the current logged in user and the image title in the JavaScript function to add it in other custom list. My ...
1
vote
0answers
371 views

window.open JavaScript local file in SharePoint 2010 WebPart

I have created a list of scanned in docs where users can view and print documents (documents can range from PDFs, TXT, DOCX, etc). These files are scanned in from a printer and stored locally in a ...
1
vote
1answer
188 views

Javascript Object Model; possible to return whether item has permissions under inheritence or not?

So if I am using the COM/JSOM, and normal GetListItem, can is there something I can add to the Include method, that will allow me to see if the item returned has permissions under default inheritance ...
0
votes
1answer
390 views

Freeze Header Row

is it possible to freeze the header row in list? We add some code so the user can scroll trough the content. The code doesn't work for the header freeze. We work with Internet Explorer 10. Have ...
4
votes
1answer
140 views

How can i add a custom tab to a ribbon at runtime using javascript/ECMAscript?

I'm trying to add a Custom tab with a group and some buttons to a single client via conditional javascript, as far as i can tell this is all found in the CUI namespace, however documentation is hard ...
0
votes
0answers
105 views

Visio Web Access web part only working on some pages

I have all of the requisites set up for viewing visio drawings on sharepoint. On a site I actually have one showing, on a subsite of this site I have the exact same features enabled, but it won't ...
0
votes
1answer
31 views

Referencing a Library in JS

I am attempting to reference a document library in JavaScript. From what I have read, I should be able to open the library using something similar to the following: list = ...
1
vote
1answer
655 views

_spBodyOnLoadFunctionNames not always working

This is in reference to SharePoint 2010. I am writing some custom javascript that needs to know when the page has finished loading. To accomplish this I am pushing my callback function on to the ...
0
votes
2answers
246 views

Totalling output from column for all entries in a list

SP2010: I need to come up with a total (number) of a column for all entries in a list. For instance: Given a list with entries which can be comprised of apples, oranges, and pears, and their ...
1
vote
1answer
256 views

Is there a way to check if a workflow is completed using Javascript?

I created a form that start a workflow automatically when an item is created, and I redirect to html page that shows a message like "Processing... please wait.", and I wait 3 seconds and so redirect ...
1
vote
3answers
313 views

SP ECMA/JS get_siteUsers() not working? trying to get user with getByLoginName()

I am trying to get specific users with this line using ECMA but I keep getting error: this.oUser = cxt.get_web().get_siteUsers().getByLoginName('dev\\joe'); I keep getting property or method ...