cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide dynamic rows if I chose anotherr value?

SOLVED

How to hide dynamic rows if I chose anotherr value?

Hello, I have a 'select' field

 

<field name="type" sortOrder="30" formElement="select">
            <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                    <item name="value" xsi:type="number">1</item>
                </item>
            </argument>
            <settings>
                <scopeLabel>[GLOBAL]</scopeLabel>
                <label translate="true">Type</label> 
                <dataScope>type</dataScope>
            </settings>
            <formElements>
                <select>
                    <settings>
                        <options class="Company\Module\Model\Fields\Source\Types"/>
//
//
return [
['value' => 'text', 'label' => __('Text')],
['value' => 'othertext', 'label' => __('othertext')],
];
//
// </settings> </select> </formElements> </field>

and bellow are dynamic rows

please, tell me how to hide dynamic rows if I chose "Othertext".

for several days now I cant find the answer. Thank so much

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to hide dynamic rows if I chose anotherr value?

1 REPLY 1

Re: How to hide dynamic rows if I chose anotherr value?

Hi @BarneyGumble

 

Check this link 

https://magento.stackexchange.com/questions/157575/magento-2-1-ui-component-hide-and-show-field-base...

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!