Posts

Showing posts from April 3, 2019

Magento 2 - Two dependencies in one field form?

Image
1 It is possible to add 2 depedencies to 1 field? Like this? ->addFieldMap($field_to_evaluate->getHtmlId(), $field_to_evaluate->getName()) ->addFieldMap($field_to_show->getHtmlId(), $field_to_show->getName()) ->addFieldDependence ( $field_to_show->getName(), $field_to_evaluate->getName(), 'dependecy 1' ) ->addFieldDependence ( $field_to_show->getName(), $field_to_evaluate->getName(), 'dependecy 2' ) With this code it looks like only add the first dependency Can i also indicate if the $field_to_show hides insteand of show? magento2 forms magento-2.0.4 dependency share | improve this question