Picture Library SlideShow web part Web Part not displaying image in original size

September 2, 2015 Leave a comment

Create a CEWP and add this script:

<script type="text/javascript">

function SlideshowObjectInitializer() {

  ShowPic = (function(ShowPicOrig) {
      return function() {

           var ssObj = arguments[0];  //SlideShow object
           var curPicIdx=ssObj.index; //current picture index

           ShowPicOrig.apply(this, arguments); //call original ShowPic

           //apply some changes to display original picture in SlideShow control
           ssObj.image.src = ssObj.linkArray[curPicIdx]; //display original image instead of web image
           //change picture & container size to auto instead of fixed (by default web image size is used)
             var cell = ssObj.cell; 
             cell.style.width = 'auto';
             cell.style.height = 'auto';
             cell.style.display = '';
             var pcell = ssObj.cell.parentNode; 
           pcell.style.width = 'auto';
             pcell.style.height = 'auto';
ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');

SharePoint Designer Workflow wait for document check in

July 27, 2015 Leave a comment

Found  a useful tips to make SharePoint Designer 2013 Workflow wait for document check in:

Add a loop, run repeatedly while CurrentItem:Level equals 255. Pause for 1 minute.

Categories: SharePoint 2013 Tags:

Change SharePoint Survey option “SPECIFY YOUR OWN VALUE”

February 25, 2014 1 comment

Found this good tips to change the default option “Specify your own value” to something else:

Quick instructions:
1. Edit the NewForm.aspx & EditForm.aspx using SharePoint Designer.
2. Add new Content Editor Web Part below the default List Form Web Part.
3. Add the following script in the CDATA section.

<script type="text/javascript">// <![CDATA[
     var labels = document.getElementsByTagName("label");
     for(var i = 0; i <labels.length; i++)
            if(labels[i].innerHTML == "Specify your own value:")
                 labels[i].innerHTML = "Others, please specify:";
// ]]></script>

There are other ways such as changing the masterpage or some of the core .js file, which I will not recommend.

SharePoint 2010: List View Threshold Explained

February 13, 2014 Leave a comment

The 5000 item limits in SharePoint list view.

SharePoint Tips by Nick Hobbs

In this post I try to explain the List View Threshold that was introduced in SharePoint 2010, the benefits that it provides, the operations that are prevented when the threshold is exceeded, and possible ways to get them working again.

What is the List View Threshold?

SharePoint 2010 has introduced a List View Threshold which helps to keep the SharePoint servers performing well by restricting the amount of list data that can be queried and displayed. This applies to lists and libraries including document libraries.

This configuration applies to each web application independently, i.e. Portal, Workplaces, Archive, and My Sites. The default limit is set at 5,000 items.

Once a query exceeds the configured limit, the query is stopped and usually a message is displayed indicating something to the effect that it is stopped because the List View Threshold is exceeded.

Typically users will see such queries in use by List…

View original post 1,835 more words

Categories: SharePoint 2010 Tags: , , ,

Highlight row in SharePoint list using Calculated Field

December 4, 2013 Leave a comment

Using calculated column to write html has been well known since SharePoint 2007. I always like to do this because it does not require complex customization on xslt or even SharePoint designer. Today I check out this blog which has more good examples: http://sharepointwijzer.nl/sharepoint-blog/tech/icc-html-calculated-column-sharepoint-view/#ICCadvanced

I would like to share a simple solution to highlight rows in SharePoint list using calculated field.


Calculated formula:

=IF([YesNo],"<img src='/_layouts/images/blank.gif' onload='javascript:{this.parentNode.parentNode.parentNode.style.backgroundColor=""Yellow"";}'>","")

Simple. Hope this save the time many out there seeking for quick solution.

SharePoint change Save button to Send

December 2, 2013 2 comments

This is quick workaround to change the default “Save” button to “Send” or any word, in the default SharePoint list form such as newitem.aspx.

1. Go the Edit mode of the form. (List Tools(Ribbon) > Form Web Parts > Default New Form)

2. Add a Content Editor Web Part and enter the following java script.

<script type="text/javascript">
function changeSaveButton()
 var inputs = document.getElementsByTagName("input"); 
 for(i = 0; i<inputs.length; i++) 
  if(inputs[i].type == "button" && inputs[i].value == "Save") 
   inputs[i].value = "Submit"; 


3. Save and done.

No need InfoPath. No need SharePoint Designer.

SharePoint 2010 calculated column and hyperlink (no workflows or scripts needed)

November 14, 2013 Leave a comment

Really simple and fast workaround


Often you will get a requirement like this:

Create a calculated column which concatenate the url text with an existing column value.

This seems to be an easy task, except one thing: SharePoint doest not render hyperlink in calculated column by default.

For example, I have a list with 2 columns: Search term and Google Search. Google Search is a calculated column with this formula

Now, this is what I will get by default:

There are a few ways to fix this problem. Usually people will recommend you to create a Hyperlink column instead and create a workflow to update the Hyperlink value (http://social.technet.microsoft.com/Forums/ar/sharepoint2010customization/thread/32d32e47-3256-4806-8775-c250b6243038) . Or, you can place a script on the page that loop through the HTML nodes and replace the unfriendly html tags with a hyperlink as described here http://practicalsharepoint.blogspot.com/2011/10/dynamic-hyperlinks-in-calculated.html.

But today, I’m going to show you how to trick SharePoint into displaying the…

View original post 58 more words


Get every new post delivered to your Inbox.