Wednesday, September 12, 2012

Hide Advanced Search button on Users page

Here's how you can hide the Advanced Search button on the default Users page in the FIM portal.



There are a few things to keep in mind:
  • You have to edit the ASPX page in Sharepoint designer.  This is not a supported change!
  • You can hide the ASP control by inserting some Javascript on the page.
  • You must call the Javascript upon load as well as upon AJAX response.
And here are the steps to accomplish it:
  • Open the IdentityManagement site in Sharepoint Designer.
  • Make a backup of aspx/users/AllPersons.aspx.
  • Add the following javascript:
    • Note that it's very important that the Javascript code go inside the tags.
<%@ Page masterpagefile="~masterurl/custom.master" language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"  UICulture="auto" Culture="auto" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderID="PlaceHolderTitleBar" runat="server">
<script type="text/javascript">
<!--
    function hideElementByClass(matchClass) {
        var elems = document.getElementsByTagName('*'), i;
        for (i in elems) {
            if ((" " + elems[i].className + " ").indexOf(" " + matchClass + " ") > -1) {
                elems[i].style.display = 'none';
            }
        }
    }
    function hideAdvancedSearch() {
        hideElementByClass('newListViewSearchMode');
        hideElementByClass('searchModeToggleImage');
    }
    window.onload = function () {
        hideAdvancedSearch();
    }
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(hideAdvancedSearch);
// -->
</script>
</asp:Content>
 
<asp:Content id="content1" ContentPlaceHolderID="PlaceHolderMain" runat="server">
 <IdentityManagement:PersonList id="PersonList"  width="100%" height="100%" runat="server"/>
</asp:Content>

References

21 comments:

  1. Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.
    Search Button

    ReplyDelete
  2. I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. psd to responsive html

    ReplyDelete
  3. AtozTopNews is the most prestigious technology site where they write on the latest and most innovative technology. AtoztopNews is renowned for writing reviews of the latest technology to the latest technological advancements. In addition, the articles they write about the most cutting-edge technology is something you can trust, and their comments are interesting.

    ReplyDelete
  4. Godrej Kalyani Nagar is a residential community situated in Pune which is now open for occupancy. The society offers apartments in different budget ranges that perfectly balance comfort and style, tailored to meet your preferences and conveniences. The project offers 1, 2, and 3BHK apartments, that aim to enhance your lifestyle. Godrej Project In Kalyani Nagar

    ReplyDelete
  5. The DRA Egmore project is an upscale residential development situated in the vibrant neighborhood of Egmore, Chennai. It offers a perfect blend of modern architecture and luxurious amenities, ensuring a comfortable lifestyle for its residents. Its strategic location provides easy access to key areas, including educational institutions, healthcare facilities, entertainment venues, and landmarks. The apartments in the project are meticulously designed and equipped with premium facilities, making it an ideal choice for those seeking upscale living in the heart of Chennai.
    For More Information -
    DRA Egmore In Chennai

    ReplyDelete
  6. The Omaxe State Dwarka in Delhi's Sector 19B is a bustling commercial and entertainment center. It boasts a wide array of retail stores, dining options, and entertainment venues, catering to various tastes and preferences. Strategically located in Dwarka, it attracts a diverse crowd, including residents, students, and working professionals. With its modern design and ample amenities, The Omaxe State Dwarka continues to be a popular destination for shopping, dining, and leisure activities in the heart of Delhi.
    For More Information -
    The Omaxe State Dwarka Delhi

    ReplyDelete
  7. M3M India has brought a Newly Launched Commercial Project M3M Golf Course Road, Gurgaon. This development offers an Office & retail shop. M3M property has the intention to generate profit from capital gains. People who want to profit from business should buy profitable commercial property for capital gains. You can search online to choose the best quality commercial property. Investment in commercial property can be a capital gain in the future. If you see any advertisement for commercial space for sale in Gurgaon, you should be careful about some basic requirements.
    For More Information -
    M3M Golf Course Road Gurugram

    ReplyDelete
  8. Homebuyers with a taste for lavishness might be interested in the apartments offered for sale in Brigade Xanadu Destino Chennai. Developed by a leading real estate developer, the property offers 1 & 3 BHK Luxury Homes. Though the project is a forthcoming property in Chennai. These are inhabited by citizens with an aristocratic lifestyle. When you live here, you can get a taste of lavish existing.
    For More Information -
    Brigade Xanadu Destino, Chennai

    ReplyDelete
  9. The Best Merchant Onboarding Agency is our marketing agency excels in streamlining the onboarding process for merchants with more solutions. We handle everything from system integration to compliance and training, ensuring a seamless experience. Our marketing expertise boosts visibility and customer engagement through innovative, data-driven strategies.
    For More Details: Best Merchant Onboarding Agency in Pune

    ReplyDelete
  10. Birla Sector 31 in Gurgaon is a sought-after residential area offering modern living spaces with excellent connectivity and infrastructure. The locality is well-developed, featuring premium apartment complexes, green spaces, and proximity to major business hubs, schools, hospitals, and entertainment centers. Ideal for professionals and families, Birla Sector 31 provides a blend of comfort, convenience, and luxury in one of Gurgaon's most desirable neighborhoods.

    ReplyDelete
  11. Experion Panipat Plots represents a premium opportunity for those seeking to invest in a thoughtfully designed residential community in Haryana. Nestled in the burgeoning city of Panipat, this plotted development combines luxury with convenience, making it an ideal choice for families, retirees, and investors alike. The unique layout of the community is meticulously planned to ensure a harmonious blend of green spaces and modern infrastructure, providing a serene environment that promotes a high quality of life.

    Visit Here: - Experion Plots Panipat

    ReplyDelete
  12. Discover Signature Global Twin Square in Sector 84 Gurgaon – a premium development offering luxury retail spaces, fine dining, and state-of-the-art commercial offices. Strategically located along the Dwarka Expressway, it promises unmatched connectivity and modern infrastructure for businesses and customers alike.

    ReplyDelete
  13. MVN Island Mall Dwarka Expressway Gurugram | Designed for the Future

    MVN Island Mall Dwarka Expressway is the newest addition to Gurgaon’s commercial landscape. MVN Group presents this advanced retail project featuring strategically designed shop spaces that promise high exposure and accessibility. Situated in a prime location with strong consumer traffic, this mall offers an excellent opportunity for retail businesses to flourish. Secure your spot in this vibrant commercial environment and position your brand for success.

    Visit Here: - MVN Island Mall Dwarka Expressway Gurgaon

    ReplyDelete
  14. Indulge in a luxurious lifestyle at Experion Sector 53, Gurugram. These thoughtfully crafted apartments are loaded with advanced amenities, including an elegant clubhouse, a meditation centre, and seamless connectivity to major hubs. Set in a prime neighbourhood, it's the ideal home for modern living. Reserve your apartment today!

    ReplyDelete
  15. Puravankara Golf Course Road in Gurugram offers an exquisite blend of modern luxury and convenience. Set in one of the most sought-after locales in the city, this premium residential project boasts state-of-the-art infrastructure, spacious apartments, and exceptional connectivity to major business hubs, educational institutions, and shopping centers.

    ReplyDelete
  16. ROF PRAVASA in Sector 88A, Gurgaon offers premium plots and low-rise floors, combining modern living with affordability. Located near Dwarka Expressway, it provides excellent connectivity, top-notch amenities, and a sustainable living environment. Ideal for homebuyers and investors looking for a prime location in Gurgaon.

    ReplyDelete
  17. Kalpataru Blossoms is an upcoming residential project on Sinhagad Road, Pune, offering luxury living spaces with 2, 3, and 4 BHK configurations. Sizes range from 800 to 2700 sq. ft. Price starts at ₹1.45 Cr, with possession scheduled for March 2029.
    For More Information –
    Kalpataru Blossoms Sinhagad Road, Pune

    ReplyDelete
  18. Located at Samruddhi Circle, Mumbai, Kalpataru Plots Nagpur offers premium residential plots. Sizes vary from 1200 sq.ft to 4000 sq.ft, providing flexibility for your dream home. Enjoy prime location benefits and exclusive amenities.
    For More Information –
    Kalpataru Plots Nagpur

    ReplyDelete
  19. Modern Spaaces Windmere, located on Haralur Road near Sarjapur Road, offers luxurious 3BHK and 4BHK apartments. The project features 24 exclusive units, and the possession date is expected in December 2027. The starting price is ₹2Cr, promising an elevated lifestyle for discerning buyers.
    For More Information –
    Modern Spaaces Windmere

    ReplyDelete
  20. Reach The Bazaria is a commercial project offering premium Shop-Cum-Office (SCO) plots located in Sector 68, Gurgaon. Strategically located with world-class amenities, flexible design, and high ROI potential. It is designed to cater to retail, office, and lifestyle needs with modern infrastructure and excellent connectivity. Explore now!

    ReplyDelete