Magento 2: Make category field required in product form in backend The Next CEO of Stack OverflowHow 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

How to place nodes around a circle from some initial angle?

I want to make a picture in physics with TikZ. Can you help me?

Won the lottery - how do I keep the money?

What connection does MS Office have to Netscape Navigator?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Where do students learn to solve polynomial equations these days?

What benefits would be gained by using human laborers instead of drones in deep sea mining?

Is there a difference between "Fahrstuhl" and "Aufzug"

What does "Its cash flow is deeply negative" mean?

Make solar eclipses exceedingly rare, but still have new moons

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

Why does standard notation not preserve intervals (visually)

What happens if you roll doubles 3 times then land on "Go to jail?"

Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?

Is wanting to ask what to write an indication that you need to change your story?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

Recycling old answers

Can we say or write : "No, it'sn't"?

How to scale a tikZ image which is within a figure environment

Solving system of ODEs with extra parameter

If a black hole is created from light, can this black hole then move at the speed of light?

Display a text message if the shortcode is not found?

Is it ever safe to open a suspicious HTML file (e.g. email attachment)?

Arranging cats and dogs - what is wrong with my approach



Magento 2: Make category field required in product form in backend



The Next CEO of Stack OverflowHow 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










2















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?










share|improve this question


























    2















    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?










    share|improve this question
























      2












      2








      2








      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?










      share|improve this question














      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?







      magento2 magento2.2 magento2.2.7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 19 at 7:32









      Mohit Kumar AroraMohit Kumar Arora

      6,74251633




      6,74251633




















          1 Answer
          1






          active

          oldest

          votes


















          4














          Go to



          Store -> Attributes -> Product.


          Search for



          category_ids 


          select



          Yes 


          for



          Values Required


          it will work.



          Tested and working.



          enter image description here






          share|improve this answer























          • Nice, thanks for the quick answer. I didn't expect such a simplest answer.

            – Mohit Kumar Arora
            Mar 19 at 7:49











          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
          );



          );













          draft saved

          draft discarded


















          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









          4














          Go to



          Store -> Attributes -> Product.


          Search for



          category_ids 


          select



          Yes 


          for



          Values Required


          it will work.



          Tested and working.



          enter image description here






          share|improve this answer























          • Nice, thanks for the quick answer. I didn't expect such a simplest answer.

            – Mohit Kumar Arora
            Mar 19 at 7:49















          4














          Go to



          Store -> Attributes -> Product.


          Search for



          category_ids 


          select



          Yes 


          for



          Values Required


          it will work.



          Tested and working.



          enter image description here






          share|improve this answer























          • Nice, thanks for the quick answer. I didn't expect such a simplest answer.

            – Mohit Kumar Arora
            Mar 19 at 7:49













          4












          4








          4







          Go to



          Store -> Attributes -> Product.


          Search for



          category_ids 


          select



          Yes 


          for



          Values Required


          it will work.



          Tested and working.



          enter image description here






          share|improve this answer













          Go to



          Store -> Attributes -> Product.


          Search for



          category_ids 


          select



          Yes 


          for



          Values Required


          it will work.



          Tested and working.



          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 19 at 7:43









          Rakesh JakharRakesh Jakhar

          1765




          1765












          • Nice, thanks for the quick answer. I didn't expect such a simplest answer.

            – Mohit Kumar Arora
            Mar 19 at 7:49

















          • Nice, thanks for the quick answer. I didn't expect such a simplest answer.

            – Mohit Kumar Arora
            Mar 19 at 7:49
















          Nice, thanks for the quick answer. I didn't expect such a simplest answer.

          – Mohit Kumar Arora
          Mar 19 at 7:49





          Nice, thanks for the quick answer. I didn't expect such a simplest answer.

          – Mohit Kumar Arora
          Mar 19 at 7:49

















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Masuk log Menu navigasi

          16 Maret Daftar isi Peristiwa | Kelahiran | Meninggal | Hari raya dan peringatan | Menu navigasis

          ジョン・ファウルズ