web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Entity list Metadata f...
Power Pages
Answered

Entity list Metadata filter show or hide button

(0) ShareShare
ReportReport
Posted on by 41

Hi folks,

 

Quick question, is there a way to implement a show / hide button for metadata filter used in an entity list?

The below image shows the metadata filters which I have applied for an entity list, would be great to have the below hidden by default, and then the user could press a button to show / hide these filters.

 

KMP_Uniserve_0-1719501733843.png

 

Portal Management does not appear to have an OOB setting for this, the filters can take up a large section of the list and screen, a toggle to show or hide them could improve a user's experience in my opinion.

 

Any advice on how to achieve this using JQuery would be much appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Inogic Profile Picture
    1,283 Moderator on at

    Hi @KMP_Uniserve ,

    As per our understanding you facing the issue to hide the all filter based on toggle

    To implement a show/hide button for the metadata filter used in an entity list, you can use the following steps and code:

    1. Open Power Pages Management / Power Portal Management.
    2. Select the list in the content section and find the list where you want to hide the filter.
    3. Select the options tab.
    4. Paste the following code into the custom JavaScript section:

     

    $(document).ready(function(){

            $(".card-body").prepend('<button id="toggleFilters" style="float: right;">Show Filters</button>');

     

                $("#toggleFilters").click(function(){

                    $("#entitylist-filters").toggle();

                    if ($("#entitylist-filters").is(":visible")) {

                        $("#toggleFilters").text("Hide Filters");

                        $(".btn-entitylist-filter-submit").show();

                      

                    } else {

                        $("#toggleFilters").text("Show Filters");

                         $(".btn-entitylist-filter-submit").hide();

                    }

                });

            });

     

     

    Inogic_0-1720158533585.jpeg

     

     

    Output:-

    Inogic_1-1720158533598.png

     

     

    Inogic_2-1720158533603.jpeg

     

    Thanks!

  • KM-14051302-0 Profile Picture
    41 on at

    Fantastic!! 😃 Thank you @Inogic , I changed "card-body" to "panel-body" and this has provided us with a button to show and hide the metadata filters, much appreciated 😉

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
Valantis Profile Picture

Valantis 46

#2
11manish Profile Picture

11manish 46

Last 30 days Overall leaderboard