-
I have previously posted this solution that lets you add the field description to the list view column header. By request I have updated the solution to work in a web part page with multiple lists / libraries. Put this code in a Content Editor Web Part at […]
-
Hi all, I have been more or less absent the past few weeks, and just wanted to let you know the status. I have published many solutions over the past years, and I get a lot of questions related to setup problems, feature requests and requests regarding updating […]
-
I got this request from Cory Alexander, I was curious if you’d be interested in brain-storming a javascript idea for SharePoint calendars? I’d be more than happy to buy you a couple beers to support it… 🙂 Here is what I was looking at doing. 1. Using Javascript, […]
-
27.01.2013 Updated to v1.5 and added MUI support. 30.04.2012 Updated the solution to Move the tooltip image to the formlabel field and ensured all fields are visible when entering “fftsetup=1”. 26.02.2012 Updated the solution to prevent cutting the top of large tooltip containers. I have previously posted a […]
-
03.12.2013: New version found here 14.06.2012 I forgot something in v2.2 – to avoid confusion i add another version v2.3 with support for mixed setup with calendars and lists in one page. 14.06.2012 v2.2 adds support for calendar day and week view, and adds an optional “Edit item” […]
-
I received this code from one of my readers – Ed MacIntosh with this message: Alex, This is a great web part that someone at my company shared that I think your readers would really find useful. It provides a dropdown menu to choose a list in your […]
-
10.12.12 I introduced a new bug in v3.3.7 that broke the filter if you did NOT use “filterAdditionalCharts”. This should be fixed in v3.3.8. 13.11.2012 Updated to v3.3.7 to fix a bug regarding “filterAdditionalCharts” in the Custom CAML filter setup. This was broken in v3.3.6 – thanks to […]
-
29.05.2012 I have published a production release here You can no longer leave comments in this article. Please post any comments or questions in the one linked above. 29.01.2012 I have done some work during this weekend, and i see that i have underestimated the complexity dealing with […]
-
In my latest project I added a web part to a list view and needed to have the list tools visible. I had to look for a fix to the disappearing list tools menu. Yes you can bring it back by clicking the web part you want to […]
-
You find an updated version here: https://spjsblog.com/2015/05/18/approve-or-reject-list-items/ I got this request from Larry: Good day A, Have a question. Is there an easy way to add to the SP 2010 ribbon an approve all button. I hate having to select each item and manually approve each one. I […]
-
Here is a teaser for my newest project: Stay tuned for updates! Alexander
-
Hi all, I have finally joined twitter! Follow me to get notifications on new and updated articles Alexander
-
Hi all, Due to instability on my home server I have moved all code referred in the articles to a hosted site on http://spjsfiles.com I have made a redirect in the old location and will try to update all links in previous articles. Stay tuned! Alexander
-
Change log 19.06.2015 v1.2 for SP2007: By request fixed a bug occurring when using this in a list view with multiple web parts from the same list (same fieldinternalname), and the column position of the field is not the same for all the web parts. 19.07.2014 v1.2 for […]
-
How to useCEWP codeNOTEParameters explainedThe calculated column Change log May 03. 2013 Changes in v1.3: Changed how the dateformat is read from “settings.dateFormat” to handle formats with four digit yyyy. 10.11.2012 Updated to v1.2 to add mouseover displaying days, hours and minutes. This update also includes the time […]
-
Hi all, I’m glad to have so many active reader! I do however have some trouble keeping up with all the comments and questions – both in the articles posted here, and to my email address. I intend to answer all comments, requests and emails, but please keep […]
-
09.12.2011 I have updated the solution to v1.1 to let the user chose the icon (or no icon) before the “child” title. The code for the file “ParentChildResources.js”, and the CEWP code for “Parent DispForm” and Child DispForm” has changed. The new “argObj-property” “iconBefore” should be the path […]
-
The solutionSample menu structureSample menuGet all the filesThe CEWPParameters explained 12.01.2012 Updated to v1.4 to support anonymous access as requested by Brett Anderson. I got this request from Larry: Hey A, I have a good request for you. I would like to build a menu structure using a […]
-
In SharePoint 2010 you loose the list view selector in a list view if there are more than 1 web part in the page. This makes navigating the list views very cumbersome. I have previously created a solution for adding a view selector in these list views, but […]
-
13.09.2014 v1.71 fixes a bug where the attachment have an apostrophe in the name. 05.06.2012 v1.7 adds support for jQuery v1.7.x. I have previously posted a solution for listing all attachments when clicking on the paper clip in a list view, you find it here. This is an […]
-
18.09.2011 I have added a bit more functionality. The CEWP code and the file “PreviewMetadata.js” has changed. Re-read this article for details. This is a remake of a previously posted solution for previewing an item in a list when hovering over the table row or a custom image. […]
-
17.09.2011 I have updated the script to support lookup columns and people pickers. I got a request from Djamel asking for a solution for removing the group label (the field name) in a grouped list view. Add this code to a Content Editor Web Part (CEWP) in the […]
-
26.08.2011 v2.9.3.2 has been released with these changes: Small fix to allow single quotes in chart options. This is necessary to handle “fontName” in IE – it has to be wrapped in double AND single quotes like this: 24.08.2011 v2.9.3.1 has been released with these changes: For non-site […]
-
The summer holiday is over and I’m back by my computer. I do have some backlog to go trough and will answer the last weeks comments as soon as i can manage. Alexander
-
10.06.2011 Update: I forgot to separate out the FieldInternalNames for the start and end date. See updated code. This solution is an answer to a request from Colin Blake: Hey Alexander, I’ve been browsing through your blog (amazing!) and have not been able to come up with anything […]
-
Combo chartHow to put multiple charts in one pageMotion chartURL filterManual filter setup filterGrouped by choice column valueHere are some screenshots of the list fields This post describes the use of the tool posted here. The latest changes are found here. This post will be updated with examples […]
-
I have posted a new version of the “Charting for SharePoint using Google Visualization API” – v2.9.0. The changes are described here, but the background story and the code is found in original article. This post describes the new features in v2.9.0. You should read the original post […]
-
Change log June 06. 2013 I have updated the code to v2.3 to fix some problems with “countOneHitPerUser”, “countOneHitPerUserPerDay” and “oneRatingPerUser” setting not working. Thanks to Jeroen for pointing this out. April 23. 2013 I have updated the code to use spjs-utility.js and to support newer versions of […]
-
I have posted a new version of the “Charting for SharePoint using Google Visualization API” – v2.8.5. The changes are described here, but the background story and the code is found in original article. This post describes the new features and changes from v2.8. You should read the […]
-
Change log July 29. 2013 I have fixed the code example as there were missing some backslashes for escaping quotes in a string. Thanks to Gary Poirier for alerting me. 03.03.2012 Updated the solution to use spjs-utility.js for compatibility with newer versions of jQuery. See download link below. […]
-
I got this request from Tim: Tim Says: Is there a way to hide the appended comments to a multipe line field with version control. Actually can it a a click hide/show, and can it display the last comment by default? click it the see all pervious comments. […]
-
05.05.2011 I have released version 2.8.5. Read about it here I have posted a new version of the “Charting for SharePoint using Google Visualization API” – v2.8. The changes are described here, but the background story and the code is found in original article. This post describes the […]
-
FeaturesBrowser compatibility tested in:How to use this solutionFor SharePoint 2007For SharePoint 2010Add this code block to the CEWP:Variable “accConstructor” explained:AttachmentsHow to find the FieldInternalNameLink directly to a section:Note:Overriding native SharePoint functionsFinale notes 19.03.2011 v2.1 adds the ability to call a function after the section has expanded. You can […]
-
FeaturesBrowser compatibility tested in:How to use this solutionFor SharePoint 2007For SharePoint 2010Add this code block to the CEWP:Variable “tabConstructor” explained:New in v2.4:AttachmentsHow to find the FieldInternalNameLink directly to a tab:Note:Overriding native SharePoint functionsFinale notes 26.11.2011 I have updated the script to v2.4 to attempt to fix some problems […]
-
Screenshots from the slideshowMove the mouse over the slide to pauseThe configuration options:The codeRegarding picture libraries: This is a repost of one of my articles article originally posted over at NothingButSharePoint.com This solution lets you setup a smooth scrolling slideshow with data from your SharePoint list or your […]
-
25.08.2012 v3.0 Fixed a bug where you could not have multiple views of the same list in a page. This update lets you have multiple lists / views of the same list in a page, and have the inline editing feature activated on all of them. The argObj […]
-
Based on recent requests i want to post this solution for getting the n’th given day of any month in any year. For example the third Friday of current month: Alexander
-
This code lets you generate polls using JavaScript/jQuery only. No need for server side installed WebParts.Create a custom list with the following fieldsCEWP codeObject attributes explainedDownload code March 15, 2015: I have updated this solution. You find v2.0 here. Please note: The Google Image Charts used in this […]
-
I have updated the tool described in this article with some new functionality. The functionality i will describe here is the ability to convert a standard SharePoint lookup column to a cross site lookup column using javascript/jquery only! Download the script from the above referred article. Create a […]
-
This new release features these chart types:Some screenshots (from v2.0 – changes introduced in subsequent versions are not reflected her):The new GUI from v2.6.5 (introduced in v2.5)The Code:The code for the file “ChartUsingGoogleVisualizationAPI.js”:Note:Tip: You find v3 of this tool here 16.08.2011 I have released version 2.9.3. Read about […]
-
Change log: 07.10.2011 A new version is published – you find it here. 23.09.2010 Moved the code to a server for direct download to make it easier for the users. You find the link below. The current stable version is 1.5. 13.09.2010 Fixed bug when ID column was […]
-
31.07.2010 Updated the code for the file “FiveDateColumnStatus.js” and the CEWP code for ListView, NewForm, DispForm and EditForm. Added support for column name in the mouse over tooltip and the percentage is now “0 %” if none of the date fields are applicable. The CEWP code has changed […]
-
15.07.2010 Updated the code for the file “VerticalScrollingWebPart.js” to try to fix the overflow issue in IE6. 24.06.2010 The code for the file “VerticalScrollingWebPart.js” is updated. I actually forgot to update it as i made some adjustments in the CEWP code… I hope the overflow issue is fixed […]
-
18.06.2010 – small update to set “lengthOfInputNumber” relative to the array of FieldInternalnames. By request from Larry, here is a solution that restricts input in a single line text field to number only. Note: It is treated as text in SharePoint and you cannot sum or average in […]
-
15.05.2012 You find an updated version here. 08.07.2010 Updated the code to make it cross compatible for SP2007 and SP2010. I got this request from Saran to display the field description when hovering the mouse over the column header in a list view. Add this code to a […]
-
This solution “injects” data, using JavaScript, into a custom list. This list has one purpose only: sending an email containing the injected data. The custom list have the following fields: Title: The native Title field – holds the subject. To: Single line of text. Cc: Single line of […]
-
03.11.2010 Updated the code to eliminate the need to refer other external resources than jQuery. Removed the argument “lookupSourceListURL” from the function call. The code is tested in IE, Chrome and Firefox. Opera is not supported. NOTE: When updating existing script you must modify the function call and […]
-
Have you noticed that when uploading a new documents in a document library, the connected workflows do not trigger? This behavior can be used to “sneak” in changes in a documents metadate without triggering new versions or connected workflows. The trick is simply to load the page with […]
-
I got this request from JGilmore: Anyone know how to change the URL of the ‘Upload’ button as well as the links under its dropdown? I would like to have the user directed to a custom upload page with ‘Overwrite existing files’ unchecked by default. Thanks in advance. […]
-
Change log August 19. 2013 Updated to v1.17 of spjs-utility.js 21.03.2011 Fixed a bug in setFieldValue on “over 20 items single lookup”. 14.06.2010 Updated the function “getFieldvalue” to fix a bug when returning the value for an enhanced rich text column on page load. Thanks to Kat for […]
-
I got a request form Charlie on how to accomplish autocomplete for a single line text-field, reading the values from itself. This solution resembles my Autocomplete for SharePoint people picker, but it pulls date into a single line text field. As always we start like this: Create a […]
-
25.08.2010 You find a new version of this feature here 24.05.2010 The code for the file “ChartUsingGoogleVisualizationAPI.js” is updated. Modified the array of fields to use for chart label and value columns. The two now uses the same array: ‘Number’, ‘Currency’, ‘Text’, ‘Calculated’, ‘Boolean’ ,’User’ ,’DateTime’ ,’Choice’ ,’Lookup’. […]
-
05.05.2010 Updated code to adapt the position of the image depending on height and width (and scroll) of the page relative to the image size. I got this request from Mark: Hi Alexander, I did not include the column as a picture because they are to big to […]
-
16.10.2010 The function getFieldValue is posted in another – more updated – version here. 29.04.2010 Updated the code for the file “GetFieldValueOrSetAsReadonly.js” to support “SPFieldUserMulti” and for getting the field value in DispForm. I have had several requests for a solution for setting fields as read only in […]
-
25.08.2011 I have ported this to SharePoint 2010. The instruction for use is the same as for v1.4 for SharePoint 2007. You find the code in the download section. 24.08.2011 I have released a new version (v1.4) that adds the following new feature requested by Bill G: Added […]
-
19.08.2011 Updated the function to support new versions of Firefox. I got a tip from Alexey Krasheninnikov regarding using regex rather then “indexOf” and “substring” in the function “init_fields()”. It is both quicker and cleaner. This function is used in all my scripts that works with NewForm, DispForm […]
-
In most cases where users have trouble getting my solutions to work, the problem is the script references. I will give a few examples here on how to troubleshoot these cases. To copy the script from sourcecode provided in the article, hover over the script and click “view […]
-
20.10.2010 Updated code to add some more features: Edit list properties: “Hidden”, “ShowUser”, “Ordered”, “Direction”. Field properties: ShowInDIP (document information panel) and cross site lookup functionality for a standard SharePoint lookup column. The article is updated and describes the changes. This code enables you to edit the following […]
-
02.03.2011 Updated the code for the file “vLookupForSharePoint.js” to v1.7.0 Add an “orderBy” option to sort the returned items by a FieldInternalName – See parameter descriptions below. The dependencies upon interaction.js and stringBuffer.js has been eliminated. 10.06.2010 Updated the code for the file “vLookupForSharePoint.js” to fix some bugs. […]
-
Change log: 06.10.2010 Fixed a bug with unchecking hidden options when using a multi choice checkbox type column as “consumer” column (line 84 in the code). Thanks to Mike for finding the bug. 31.08.2010 Modified the code to hide the “consumer field” entirely if no items is visible. […]
-
13.03.2011 Updated the code to handle pasting into the field by adding “blur” eventhandler. Referred jQuery from Google. 14.03.2010 Updated to count down from limit to 0 and color code the counter. Also merged the “Count characters” and the “Count words” functions to one. See new code and […]
-
I got this request: Hi Alexander: Another “is it possible?” question… Is it possible to have a specific column’s filter choice appear in a CEWP that I would place above a list view? Example: Filter the page by [Customer] CWEP: would contain text + [Customer] Thanks- Charlie Epes […]
-
This is a draft/example to keep Steve busy over the weekend 🙂 (see his request here). To get anything out of this code, you have to read the following articles: Tabs in SharePoint form and Accordion in SharePoint form Here is the code: This is the same code, […]
-
I got this request from Sonaly: I am using MOSS. I have two lists Machines and TRansactions. I have 3 following textboxes in newform.aspx/editform.aspx of Transactions List. EnqNo – Plain Text box – Required field Date – Datetime field – Required field MachineID – Plain Text box – […]
-
03.03.2010 Updated code for the file “RatingForSharePoint.js” due to a bug occurring when the ID column was hidden, but not placed far right in the view. I got this request after enabling “rating” of the blog comments: …How can we implement the thumbs up or down functionality you […]
-
12.10.2011 Fixed a bug in the description for how to address the headings by name in the fields object. 20.06.2011 Fixed a bug with Firefox. The function “init_fields()” in the code for the file “BuildHeadingsFromArray.js” is replaced with “init_field_v2()”. 04.03.2010 Small update to the function “buildHeadingsFromArray(arr)” to skip […]
-
16.10.2013 New version: https://spjsblog.com/2013/10/16/display-information-from-another-list-based-on-a-lookup-column-connection-updated-version/ 23.05.2010 Updated to fix hyperlink columns (splits the hyperlink by the first “, ” to separate URL and description). 20.05.2010 Updated to support hyperlink columns formatted as hyperlink and hiding of empty “rows”. 26.02.2010 Updated to support multiple lookup columns. Here is is an […]
-
Change log October 1, 2014 Updated the code example to support newer versions of jQuery. I got this request: Hi Alexander: Further to your Multiple Choice Checkbox solution, do you know of a way to add a “Select All” to all checkboxes on an entire form? Thanks- Charlie […]
-
I got this request from Larry: choice – Multiple select, check boxes, is there a way to have multiple default values. I may want the same 3 items to always be selected. by default SP only allows one option. This field for 90% may need those 3 requests. […]
-
11.08.2010 Updated description to of the parameter “FieldInternalName”. Use “DisplayName” if the multiline field is of type rich or enhanced rich test. I got this request from ronajon: hi Alexander, i accidently stumbled on your great blog search for a way to modify my lsitview with javascript. here’s […]
-
28.05.2011 I have redone this solution to use a star-rating in stead of the simple “like” button. You find the new version here 01.11.2010 Redone the scripts and added support for rating individual items in a list – for example in “Dispform” in a blog: The solution counts […]
-
You all know that you can send a copy of a document from one document library to another by using the dropdown on the “Name” column and selecting “Send to > Other location”. Some of you also know that you can add a predefined “send to location” under […]
-
This one if based on a request from Charlie Epes: Hi Alexander: I need my users to click an “Add New” icon next to an item in a List View and have a NewForm pop-up with the same [Company Name] field already populated. Possible? This request hat two […]
-
This script filters a list view based on membership in SharePoint groups. The filtering has nothing to do with item level security, it is merely a method for filtering by comparing a users group membership against a text field containing a group name. This column “VisibleTo” must contain […]
-
I got this request from Kale: Do you have an ideas on how to remove “empty/blank” items when using the “group by” feature? See the example below. In other words, for category ‘Test 1′ you have to expand the blank item just to see the documents since they […]
-
I got this request from Khan: Alexander, … Another question I have is how I can display two fields (and their labels) in the same row? I know I am asking too much. But I really hope you can give me some advice o this. Thanks man. Here […]
-
03.08.2010 Updated the article with another example on how to build the fields-object in a customized form. This article describes how to use most of the solutions found in this blog with a customized form. The scripts which this article addresses, is the ones involving the function “init_fields()_v2”. […]
-
I got this request from Cookie: Is there a way to create an anchor within a NewForm or EditForm? I have a long intake, or it could be long. When I assign the the item to an owner and provide them a link to the form, it would […]
-
13.03.2011: Updated the code and made it easier to use by referring jQuery and jQueryUI from Google. I got this request from Larry: Maybe this time I can post something we can get to work. I have been trying to peice together several scripts, including yours to make […]
-
27.01.2012 Updated to support SharePoint 2010. By request from Charlie Epes i have made a function for adding a “Success Ratio” to the ms-gb-row (first group in grouped list view): This function takes two arguments: leadText: The text added before the percentage value txtToFind: The text to search […]
-
11.01.2010: Updated code due to a bug (line 36 is updated). Thanks to Scott Muldowney for spotting it. The scenario: You open a list item in EditForm, and the list item has a running (not yet completed) workflow. Nothing prevents you from editing the item, but when you […]
-
04.07.2010 Updated the code for the file “WebpartTabs.js” to fix an issue with grouped webparts being expanded by default. Thanks to Bullvan for noticing. 02.02.2010 Update to add possibility to set the tab titles in an array. Useful when viewing multiple views of the same list in a […]
-
If you want to post code in comments, please format it like this to make it readable: <code> // Your code here </code> Alexander
-
Change log October 22, 2014 v1.1: Updated the code to support new versions of jQuery and added support for Surveys (tested in SP2010). In this article will show you how to limit the number of allowed selections in a column of type “Choice: Checkboxes (allow multiple selections)”. The […]
-
08.10.2011 Updated with SharePoint 2010 code. 22.04.2010 Updated the code to support multiple views of the same list in the same page, as requested by Mich. The file “HighlightRowByYesNoColumn.js” is updated. In this post i will show you how to highlight a row in a list view based […]
-
This script adds “one click edit of an CEWP”. It supports both “Rich text editor…” and “Source code editor…”. NOTE: You must add the site to “Local Intranet” in IE, if not the one click edit might not work. The function checks that the logged in user has […]
-
This one is an attempt to answer Charlie’s request: Hi Alexander: On several of my lists, I struggle with the width of the page and too many fields. I use some simple javascript to wrap the column headers but I still need to prevent users from having to […]
-
12.03.2011: I have posted a new release, you find it here. In this example i will show how to use the jQuery UI widget “Accordion” in a SharePoint form. NewForm: On form validation (refresh) it selects the first section containing empty fields: DispForm with attachment: As always we […]
-
18.01.2011 I have posted a new solution compatible with both SP2007 and SP2010 and fixes the problems with rich text fields and “single lookup with more than 20 items under Internet Explorer – problem”. You find it her 23.01.2010 Updated the code to fix two issues regarding date […]
-
31.03.2010 updated the code and reworked the article: This solution enables you to edit a column of type “Date and Time (Date Only)”, “Single line of text”, “Number”, “Currency”, “Yes/No” and “single choice people picker” directly in a list view. I’m planning on updating with support for columns […]
-
By request from Charlie: Hi: Similar to the “Date Picker Clicker”, do you know if I could click a link and the users login name would fill a People Picker (person or group)?… on a newform or editform? Charlie Epes Here is a solution for inserting current user’s […]
-
Change log April 9, 2014 Updated the code example to fix some quotes that was formatted wrong due to migrating from my old server a long time ago. I also updated the function init_fields in the example. I got this request from Charlie: Hi Alexander: Is it possible […]
Archives
14 Comments on “Archives”
Leave a Reply
You must be logged in to post a comment.
Hi Alex,
I need a small help on SP 2010.I have a customized list which is getting data from multiple lists.I have written a SPD work flow to get data and display in list.It’w working fine as per requirement.But it is taking 30 + seconds time.So i need to display a progress bar/spinning image while SPD work flow status = null or status = in progress.
Can you pls help on.
Thanks,SG
This one is old and may need updating to work, but look at it and see if it could fit your needs: https://spjsblog.com/2010/01/11/check-workflow-status-and-refresh-page-when-status-equals-completed/
Alexander
hi Alex, I m having wsp file in sharepoint 2010. I need to deploy this wsp into office 365 along with workflows and all. Could you please help me.
Sorry, I cannot help you with this.
Alexander
Hi Alex, How can i get the value of selected item from the look up field.Based on that value i need to get the value from another list .
Look at this one: https://spjsblog.com/2010/05/28/get-or-set-value-for-sharepoint-field-in-newform-editform-and-dispform-get-only-in-dispform/
Alexander
See if you can find a solution here: http://blogs.technet.com/b/asiasupp/archive/2011/06/13/error-message-quot-your-client-does-not-support-opening-this-list-with-windows-explorer-quot-when-you-try-to-quot-open-with-explorer-quot-on-a-sharepoint-document-library-in-office-365-site.aspx
Alexander
Hi Alex,
I’m looking for a decent lightbox / slideshow to display a picture gallery (with thumbs & hopefully captions!) I found one a while back and I’ve lost it again. I don’t think it was originally from here, but I am positive I saw something on this site which directed to that solution. Had good look through here and can’t seem to find it.
Can you point me in the right direction please or equally do you have a solution?
As you were.. I found it http://en.share-gate.com/blog/image-slider-with-sharepoint-2013-search-results
Hi Alex,
I have a SharePoint 2013 (The Cloud version) custom list where 1 column is a text field where contact numbers are keyed in. How can I get SharePoint to highlight duplicate values in that column so that every time a new item is added to the list, I’ll know if the contact number has been used previously?
In the list settings you can enforce unique values in the “edit field” settings. This is out out of the box functionality.
Alexander
Hi Alexander,
Your blog is very helpful all the way.
Kudos to you.
Thanks,
Raja
Hello,
we have a license for a site collection and we have created a new subsite, what are the actions to take in order to keep the license on the subsite
You need to edit the DFFS_loader.html file – read more here: https://spjsblog.com/dffs/dffs-installation-manual/#Manage_the_license_code_centrally
Alexander