Change SharePoint Survey option “SPECIFY YOUR OWN VALUE”

February 25, 2014 Leave a comment

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

http://iedaddy.com/2012/05/sharepoint-2010-change-survey-option-specify-your-own-value-to-other/

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

Kelv:

The 5000 item limits in SharePoint list view.

Originally posted on 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 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.

highlight

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 Leave a comment

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"; 
 } 
}

_spBodyOnLoadFunctionNames.push("changeSaveButton");
</script>

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

Kelv:

Really simple and fast workaround

Originally posted on dev.notes.share():

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 58 more words

SharePoint Default List Form and InfoPath

September 26, 2013 Leave a comment

Scenario

Require custom Display form, remain default New and Edit item form for a SharePoint custom list.

Steps

Create custom InfoPath form to replace default DispForm.aspx.

Problem

SharePoint list automatically associate edit form from InfoPath. Using SharePoint Designer to set the default form does not work.

Solution

  1. Go to List Settings > Form Settings > choose “Use the default SharePoint form” without checking “Delete the InfoPath Form from the server”. This will reset the list to use back all the default form.
  2. Go to SharePoint Designer, select displayifs.aspx and Set as Default. This will set the InfoPath form as the default display form.

Reference: http://sharepoint.stackexchange.com/a/43816

Javascript in Wiki page

April 15, 2013 Leave a comment

Just realized adding javascript in wiki page will not works. Somehow SharePoint will stripped out the <script> blocks. Solution? Use Content Editor Web Part.

Found the solution here.

 

Categories: SharePoint 2010
Follow

Get every new post delivered to your Inbox.