You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
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.
Depeding parameters can't be required?
The text was updated successfully, but these errors were encountered:
@mvistas is this issue still actual?
If it is please describe detailed steps, actual result and expected result according to the template.
If it is not, please close it.
If it is more question than an issue please refer to the Community Forums or the Magento Stack Exchange as GitHub issue tracker is intended for technical issues only.
According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.
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.
Depeding parameters can't be required?
The text was updated successfully, but these errors were encountered: