Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Hide search boxin a view

Posted on by Microsoft Employee

Hello,

We need to have associated Sharepoint documents visible directly in the Case form. I followed the following post and it looks quite nice: https://jlattimer.blogspot.com/2017/01/show-sharepoint-documents-on-main-form.html

The only annoying thing is the Search box, which looks confusing to users (see the attached image). Is there any way how to remove this search box? either by URL parameter in IFRAME or for the whole Document Associated Grid view? (We have renamed the view to Attachments)

Thanks

2018_2D00_08_2D00_22-16_5F00_10_5F00_47_2D00_Window.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Hide search boxin a view

    Thank you Ravi, it works perfectly!

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Hide search boxin a view

    Hi,

    You can use the below method to hide the search box. You need to register it on "" of your IFrame. Also, you need to relace the "IFRAME_DOCUMENTS" with the is of your IFRAME.

    ====================

    function hideSPQuickFind() {    

       var ifrm = window.parent.document.getElementById("IFRAME_DOCUMENTS");    

       if (ifrm.contentWindow.document.getElementsByClassName('ms-crm-grid-quickFindContainer-associatedGrid-lite')[0] != null) {

           ifrm.contentWindow.document.getElementsByClassName('ms-crm-grid-quickFindContainer-associatedGrid-lite')[0].style.visibility = 'hidden';

       }

    }

    ==================

    iframe.png

    Note: It is unsupported to access form elements using DOM. So the above method is unsupported. So is the method you are following to display document on form. This means this implementation will break in future upgrades if Microsoft 

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Hide search boxin a view

    Hi Vladislav Malanik,

    There are currently no supported methods for removing this search box.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans