Highlight row in SharePoint list using Calculated Field

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

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.