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

Seven steps to build and deploy SPFX web part to SharePoint

Install Node.JS Use this link to install Node.JS 2.        Install yeomen and gulp CMD>npm install –g y...