Wednesday, August 20, 2014

Change Search tips link from advance search page - SharePoint 2010 Search

<script src="<link to file>jquery-1.11.1.min.js"></script>

$( document ).ready(function() {
$(".ms-advsrchtips" ).find('a').attr("href", "javascript:openDiaFormadvsrchtips();")

function openDiaFormadvsrchtips()

   //Use SP.UI.$create_DialogOptions() instead of SP.UI.create_DialogOptions()
   //The name of the method starts with a "$"
   var diaOptions = SP.UI.$create_DialogOptions();
   diaOptions.url = '<youR page url>';
   diaOptions.width = 800;
   diaOptions.height = 550;
   diaOptions.title = "Search Tips";


No comments:

Post a Comment

SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...