# Managing filter interface elements.

**URL:** https://discourse.paraview.org/t/managing-filter-interface-elements/12779
**Category:** Development
**Created:** [August 30, 2023, 2:15pm UTC](https://discourse.paraview.org/t/managing-filter-interface-elements/12779 "2023-08-30T14:15:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![OlegIT](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@OlegIT](https://discourse.paraview.org/u/OlegIT)
#### Post date: [August 30, 2023, 2:15pm UTC](https://discourse.paraview.org/t/managing-filter-interface-elements/12779/1 "2023-08-30T14:15:25Z")

</div>

I am making my own filter, in the properties of this filter it is necessary to hide / show several controls by the button (- / +), how the property itself behaves.

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [September 8, 2023, 1:06am UTC](https://discourse.paraview.org/t/managing-filter-interface-elements/12779/2 "2023-09-08T01:06:07Z")

</div>

Do you mean add/remove new values like in the contour filer UI ? Or hide /show properties based on values of other properties ? or maybe something like the gear/ advanced properties ?

For all these cases I would recommend to look into a current filter that behaves similar to what you need and then look at is XML definition. To find the XML definition you would need to search the name (using `grep` for example) of the filter among the xml files in the code base.

The visibility state of a property in the GUI is handled by “Decorators” so look for similarly-named attributes once you find an XML definition close to your needs.

---

<div class="post-metadata">

### Author: ![OlegIT](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/o/71c47a/32.png) [@OlegIT](https://discourse.paraview.org/u/OlegIT)
#### Post date: [September 11, 2023, 5:26am UTC](https://discourse.paraview.org/t/managing-filter-interface-elements/12779/3 "2023-09-11T05:26:24Z")

</div>

Created my own button. The problem has changed, now my question is how to access filter GUI elements, for example DoubleVectorProperty, in order to call the Show, Hide methods in the handler of this button? It will be very good if such access provides the ability to change the displayed values in the element field; calling the SetXXX function in the xml file command=“SetXXX” does not give any result.  
There is very little information on the Internet on how to create and manage a filter. I would be grateful if you could share links on this issue.
