Hide Advanced Search link in FIM Portal for a particular Search Scope

Hi Folks,

I want to hide the "Advanced Search" link for a particular search scope. Is this achievable?

I went through this link http://blog.msresource.net/2013/11/21/forefront-identity-manager-2010-r2-build-4-1-3496-0-released/ but this leads in hiding "Advanced Search" for all configurations. Tried customizing it only for a particular search scope but did not work.

Any suggestions?

Re

July 7th, 2015 6:46am

Hello,

sadly hiding the advanced search button is only possible for all search scopes.

You cannot configure that on a per scope base.

/Peter

Free Windows Admin Tool Kit Click here and download it now
July 7th, 2015 7:06am

Thanks for the quick response Peter. Is there any other way to achieve it apart from OOB options.
July 7th, 2015 7:08am

Hi

I'm not quite sure, Ike has done some fantastic "hacks" with Jquery, you can take a look on his presentation at the FIM Team User Group.

https://tlktechidentitythoughts.wordpress.com/2015/02/

Maybe it is possible to not only hide fields dynamiclly and do it with links links also.

Of course this way (if possible) is not supported.

/Peter

Free Windows Admin Tool Kit Click here and download it now
July 7th, 2015 7:23am

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

August 14th, 2015 7:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics