I want to make the category field required for product form in the backend.

I have tried to add the required class in the block class, but nothing happened.

Since the category field is not an input or dropdown field, I am not able to figure out how can I make it required.

Make Category Field Required in Product Form in Backend

Can anyone help me to achieve this?


Go to

Store -> Attributes -> Product.

Search for





Values Required

it will work.

Tested and working.

enter image description here

  • Nice, thanks for the quick answer. I didn't expect such a simplest answer. Mar 19 '19 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.