Hello all,
I create a widget where some parameters depends from other. This parameters are required.
For example:
<parameter name="block_content_type" xsi:type="select" source_model="namespace\modulename\Model\Config\Source\Types" visible="true" sort_order="2" >
<label translate="true">Text Block type</label>
</parameter>
<parameter name="text" xsi:type="block" required="true" visible="true" sort_order="3">
<label translate="true">Text</label>
<depends>
<parameter name="block_content_type" value="text" />
</depends>
<block class="namespace\modulename\Block\Adminhtml\Widget\TextField"/>
</parameter>
In this case, the parameter text only be visible if Text block has value = text.
If I choose another value for text block, this field is not visible. But when I submit my data I get the message that the text field is required.
I wan this field required if, the text block is text.
Anyone had the solution?
thank yoou