Hide Entire Table by default and show relevant rows upon free text filter search
Asked by emagnun:

My page structure is as below.  

ParentPage  
-ChildPage1 --- TableExcerpt(Table1)  
-ChildPage2 --- TableExcerpt(Table2)  
-ChildPage3 --- TableExcerpt(Table3)  

Requirement:  
1. There should be free text search option to be displayed in the Parent page, no other information.  
2. When user enters the search, it should display the table(s) contents from child page(s) accordingly.  

What I did:  
I added a table transformer macro in parent page (to combine all tables) and added a free text filter. With this logic, my requirement #2 will be satisfied, but requirement #1 will fail. Coz it listed the entire table contents (Table1+Table2+Table3) by default in parent page.   

Suggestions Please ??


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@emagnun](/t5/user/viewprofilepage/user-id/4359249) ,

Please go to your Table Filter macro where you have your Free Text filter and navigate to the Table View tab:

![Wed 2-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/139688iE950B01E953AA250/image-size/large?v=v2&px=999 "Wed 2-1.png")

Set the number of rows to show if not filtered to "0":

![Wed 2-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/139690iBA2BAA02662AB3EF/image-size/large?v=v2&px=999 "Wed 2-2.png")

You'll show only your filters and the table header without any rows by default (if the filters are not applied).

If you filter (search for) smth, then the corresponding rows will be revealed:

![Wed 2-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/139693i844A18E86809B9D2/image-size/large?v=v2&px=999 "Wed 2-3.png")


author: emagnun
body: Hello [Katerina Kovriga _Stiltsoft_](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1464746)

Thank you so much for your advice. This is exactly what I was looking for.  

Just curious:   
Is it possible to NOT show the table headings?   

![capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/139723iB452E3EFDE14815B/image-size/large?v=v2&px=999 "capture.JPG")

comments: author: Katerina Kovriga {Stiltsoft}
body: Unfortunately, we don't provide such function: the header row is a significant part of tables in Confluence, besides it should be always visible to apply live filtration:

![Wed 2-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/139743i436FB81ED6D3775E/image-size/large?v=v2&px=999 "Wed 2-4.png")

And there is always some risk that users won't understand that there is a hidden table that they need to filter using the filtering panel.

So our customers often show the original tables but use [pagination inside the Table Filter macro](https://docs.stiltsoft.com/display/public/TFAC/Sorting%2C+freezing+and+other+table+viewing+options#Sorting,freezingandothertableviewingoptions-Addpaginationtotables) to make them readable and not so big.


author: emagnun
body: Sorry, just want to clarify again..   
**I was only asking if if there's a way to hide the headers when no filter is applied.** When the user types on the free text filter, it makes sense that headers and corresponding rows of the table will be displayed.   
**-**


author: Katerina Kovriga {Stiltsoft}
body: No, there is no any way to hide the table headers.


author: emagnun
body: Got it. Hope there are considerations on this in future.


Tags: atl-gruland

confluence-server

excerpt

server

table