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

Hide "Dates" button in the Filters modal

Answered
Javier G. asked 1 day ago

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.

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster 1 day ago

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

Please login or Register to Submit Answer