Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required parameter depending from another is allways required #4672

Closed
mvistas opened this issue May 24, 2016 · 2 comments
Closed

Required parameter depending from another is allways required #4672

mvistas opened this issue May 24, 2016 · 2 comments

Comments

@mvistas
Copy link

mvistas commented May 24, 2016

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?

@duhon duhon added PS labels Jun 9, 2016
@vkorotun vkorotun removed the PS label Aug 4, 2016
@veloraven
Copy link
Contributor

@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.

@veloraven
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants