How to hide create button in filter condition

How to hide filter condition create button as all conditions i have denied to some role (deny access to respective detail screen).

Screenshot 2025-02-24 165649

It still shows buttons for them and give error on click.

Some roles will have ability to add all three type of conditions (group, propery,jpql)

Thanks in advance

Hi @lalajaipur68

You can override io.jmix.flowui.app.filter.condition.AddConditionView in your project ant customize the logic of creating or hiding the “Create” button. Here is the documentation on how to create an extended view.

Also, starting with Jmix 2.4 the UI Constraints add-on is available to create rules for showing and hiding components.

Regards,
Maria.

Thanks @m.orlova

It is working now.