☝️Small business or a startup? See if you qualify for our special offer.
+

Hide "Dates" button in the Filters modal

Answered
Javier G. asked on May 16, 2025

Hello, 

We recently updated to Flexmonster version 2.9.100 (from 2.8.10), and while testing the filters window, specifically the "Filter by: [Dates]/[Labels]/[...]" buttons, we noticed that the "Filter by: Dates" option is not working for us.

We are using SSAS, and we believe there might be an issue with our dimension configuration for dates. However, we are unable to identify the problem and do not have the time to investigate further.

Therefore, we would like to just hide the button when the dimension is a Date, but only in that case. We want to retain the functionality when it is a string (Labels button).

Is it possible to achieve this?

Thanks in advance.

4 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 16, 2025

Hello Javier,

Thank you for reaching out to us.

We recommend using the CSS rules to hide the "Filter by: Date" button. For example:

#fm-pivot-view
> div.fm-ui-element.fm-ui.fm-ui-container.fm-ui-window.fm-ui-popup.fm-filter-view.fm-noselect
> div.fm-ui-element.fm-ui.fm-ui-container.fm-filter-view-content
> div.fm-ui-element.fm-ui.fm-ui-row.fm-filter-sort-row
> div.fm-ui-element.fm-ui.fm-ui-col.fm-filters-col
> button.fm-filter-btn[aria-label="Filter by: Dates"] {
display: none !important;
}

This way, the "Filter by: Labels" button will still be visible for string fields. Please check the following JSFiddle for example: https://jsfiddle.net/flexmonster/Lpzaq40f/.

Please let us know if it works for you. Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 27, 2025

Hello Javier,

Hope you are having a great week!

We were wondering if you had a chance to check the suggested approach. Could you please confirm if it works for you?

Looking forward to hearing your feedback.

Kind regards,
Nadia

Public
Javier G. May 29, 2025

Hello Nadia,

Yes, we have added it to our CSS style sheets and it seems to be working perfectly. Many thanks for your help!

Regards.

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 29, 2025

Hi Javier!

Thank you for your feedback.

We are glad to hear that it works for you.

You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer