How to make a field required on product edit page only if another filed is checked
-
02-03-2021 - |
Question
I have creaed two product attributes "show member price" and "member price". By default the field Member price is non mandatory. But when the admin checks the "show member price(checkbox)" filed than the field "member price(text)" should become mandatory but for now the filed remains non mandatory in both the conditions.
Please help. Thanks in advance.
No correct solution
OTHER TIPS
I came through this page which should help you - https://webkul.com/blog/depend-attribute-field-attributes-field-admin-form-magento2/
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange