I have one yes/no select field in a widget.xml
If "yes" was selected then category select field should be visible.
But category select field always visible instead. That's wrong.
Here is my widget.xml:
<select_category_type translate="label description">
<label>Select categories</label>
<visible>1</visible>
<type>select</type>
<values>
<item0 translate="label">
<value>0</value>
<label>No</label>
</item0>
<item1 translate="label">
<value>1</value>
<label>Yes</label>
</item1>
</values>
<sort_order>25</sort_order>
</select_category_type>
<selected_category translate="label">
<visible>1</visible>
<required>1</required>
<label>Select categories</label>
<type>label</type>
<helper_block>
<type>av_widget_product_featured/catalog_chooser</type>
<data>
<button translate="open">
<open>Select Categories...</open>
</button>
<use_massaction>1</use_massaction>
</data>
</helper_block>
<depends>
<select_category_type>
<value>1</value>
</select_category_type>
</depends>
<sort_order>30</sort_order>
</selected_category>