Magento 2: Make category field required in product form in backendHow can I get custom module collection on form page magento 2how to add another field to category edit page in backend?Magento 2 checkout input field validation possibilityInput type number in admin edit form Magento 2Magento 2 : State dropdown showing regionID is required fieldMake required field to Gift Option in Magento 2Read only field in UI component form Magento 2Add class to input element if field is requiredAdd a generic field in admin formHow to make file field required pass when submit even it existed value
Does "he squandered his car on drink" sound natural?
What is going on with gets(stdin) on the site coderbyte?
How to get directions in deep space?
Delete multiple columns using awk or sed
When were female captains banned from Starfleet?
Shouldn’t conservatives embrace universal basic income?
How to preserve electronics (computers, iPads and phones) for hundreds of years
Why is the Sun approximated as a black body at ~ 5800 K?
Can I cause damage to electrical appliances by unplugging them when they are turned on?
How would you translate "more" for use as an interface button?
How to make money from a browser who sees 5 seconds into the future of any web page?
How do you make your own symbol when Detexify fails?
Is it allowed to activate the ability of multiple planeswalkers in a single turn?
Do we have to expect a queue for the shuttle from Watford Junction to Harry Potter Studio?
Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?
awk assign to multiple variables at once
How do I tell my boss that I'm quitting soon, especially given that a colleague just left this week
What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?
Why do Radio Buttons not fill the entire outer circle?
What fields between the rationals and the reals allow a good notion of 2D distance?
Does the reader need to like the PoV character?
Find the next value of this number series
Why the "ls" command is showing the permissions of files in a FAT32 partition?
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Magento 2: Make category field required in product form in backend
How can I get custom module collection on form page magento 2how to add another field to category edit page in backend?Magento 2 checkout input field validation possibilityInput type number in admin edit form Magento 2Magento 2 : State dropdown showing regionID is required fieldMake required field to Gift Option in Magento 2Read only field in UI component form Magento 2Add class to input element if field is requiredAdd a generic field in admin formHow to make file field required pass when submit even it existed value
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.
Can anyone help me to achieve this?
magento2 magento2.2 magento2.2.7
add a comment |
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.
Can anyone help me to achieve this?
magento2 magento2.2 magento2.2.7
add a comment |
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.
Can anyone help me to achieve this?
magento2 magento2.2 magento2.2.7
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.
Can anyone help me to achieve this?
magento2 magento2.2 magento2.2.7
magento2 magento2.2 magento2.2.7
asked 2 days ago
Mohit Kumar AroraMohit Kumar Arora
6,67351633
6,67351633
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Go to
Store -> Attributes -> Product.
Search for
category_ids
select
Yes
for
Values Required
it will work.
Tested and working.
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266463%2fmagento-2-make-category-field-required-in-product-form-in-backend%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Go to
Store -> Attributes -> Product.
Search for
category_ids
select
Yes
for
Values Required
it will work.
Tested and working.
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
add a comment |
Go to
Store -> Attributes -> Product.
Search for
category_ids
select
Yes
for
Values Required
it will work.
Tested and working.
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
add a comment |
Go to
Store -> Attributes -> Product.
Search for
category_ids
select
Yes
for
Values Required
it will work.
Tested and working.
Go to
Store -> Attributes -> Product.
Search for
category_ids
select
Yes
for
Values Required
it will work.
Tested and working.
answered 2 days ago
Rakesh Kumar JakharRakesh Kumar Jakhar
1764
1764
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
add a comment |
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
Nice, thanks for the quick answer. I didn't expect such a simplest answer.
– Mohit Kumar Arora
2 days ago
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266463%2fmagento-2-make-category-field-required-in-product-form-in-backend%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown