Hi Peter,
I am coming back late to this post but your tips finally helped me when I started implementing this piece of work last week.
Guys,
Please find the solution
We went ahead and modified the NewPopupPicker.aspx which was the pop up page we were getting when clicking on Advanced Search link.
I found it in the path below. It may vary for your environment.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\MSILM2SitePages\SitePages\aspx\common
Added the below piece of code
<script type="text/javascript">
window.onload = function ()
{
var myAdvancedSearch = document.getElementById("ctl00_PlaceHolderMain_NewPopupPicker_listView_searchMode").parentNode;
var dropdownList= document.getElementById("ctl00_PlaceHolderMain_NewPopupPicker_listView_listViewSearchControl_ctl00_searchItemListsID");
var dropDownListValue=dropdownList.options[dropdownList.selectedIndex].value;
if (myAdvancedSearch != null)
{
if(dropDownListValue =="<Search Scope Name>")
{
myAdvancedSearch.style.display="none";
}
}
}
</script>
Regards,
Veena