Validation Issue in html field The Next CEO of Stack OverflowCheckout uiComponent (input field) rendered multiple times: how do I apply viewmodel functionality to current input field only?Magento 2 add custom product attribute validation from install scriptMagento 2 checkout input field validation possibilityMagento 2.1 Create a filter in the product grid by new attributeMagento 2 Add new field to Magento_User admin formMagento 2: How to add a Color Picker in Grid?Magento2 : how to set per website is_required custom attribute for account creation formMake required field to Gift Option in Magento 2Add class or data-attribute to product optionsMagento 2 Create new “Catalog Input Type for Store Owner” Attribute

That's an odd coin - I wonder why

Identify and count spells (Distinctive events within each group)

"Eavesdropping" vs "Listen in on"

Direct Implications Between USA and UK in Event of No-Deal Brexit

Why did the Drakh emissary look so blurred in S04:E11 "Lines of Communication"?

Finitely generated matrix groups whose eigenvalues are all algebraic

How does a dynamic QR code work?

Is a linearly independent set whose span is dense a Schauder basis?

Ising model simulation

How do I secure a TV wall mount?

Calculating discount not working

What happens if you break a law in another country outside of that country?

Can this transistor (2N2222) take 6 V on emitter-base? Am I reading the datasheet incorrectly?

How badly should I try to prevent a user from XSSing themselves?

Mathematica command that allows it to read my intentions

Why does the freezing point matter when picking cooler ice packs?

Is it reasonable to ask other researchers to send me their previous grant applications?

Find a path from s to t using as few red nodes as possible

How should I connect my cat5 cable to connectors having an orange-green line?

Compensation for working overtime on Saturdays

Another proof that dividing by 0 does not exist -- is it right?

Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?

MT "will strike" & LXX "will watch carefully" (Gen 3:15)?

Can Sri Krishna be called 'a person'?



Validation Issue in html field



The Next CEO of Stack OverflowCheckout uiComponent (input field) rendered multiple times: how do I apply viewmodel functionality to current input field only?Magento 2 add custom product attribute validation from install scriptMagento 2 checkout input field validation possibilityMagento 2.1 Create a filter in the product grid by new attributeMagento 2 Add new field to Magento_User admin formMagento 2: How to add a Color Picker in Grid?Magento2 : how to set per website is_required custom attribute for account creation formMake required field to Gift Option in Magento 2Add class or data-attribute to product optionsMagento 2 Create new “Catalog Input Type for Store Owner” Attribute










0















I am using the UI component form with some additional attribute field using an HTML template. But I am not able to validate these field as par standard. required property is not working.



Example:



 <section class="admin__page-section price-lab attribute-lab-3"> 
<label class="attr-label" for="nego">Nego </label>
<select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
data-bind="options: negoOptions,
optionsText: 'value', optionsValue: 'id' ">

</select>
</section>









share|improve this question




























    0















    I am using the UI component form with some additional attribute field using an HTML template. But I am not able to validate these field as par standard. required property is not working.



    Example:



     <section class="admin__page-section price-lab attribute-lab-3"> 
    <label class="attr-label" for="nego">Nego </label>
    <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
    data-bind="options: negoOptions,
    optionsText: 'value', optionsValue: 'id' ">

    </select>
    </section>









    share|improve this question


























      0












      0








      0








      I am using the UI component form with some additional attribute field using an HTML template. But I am not able to validate these field as par standard. required property is not working.



      Example:



       <section class="admin__page-section price-lab attribute-lab-3"> 
      <label class="attr-label" for="nego">Nego </label>
      <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
      data-bind="options: negoOptions,
      optionsText: 'value', optionsValue: 'id' ">

      </select>
      </section>









      share|improve this question
















      I am using the UI component form with some additional attribute field using an HTML template. But I am not able to validate these field as par standard. required property is not working.



      Example:



       <section class="admin__page-section price-lab attribute-lab-3"> 
      <label class="attr-label" for="nego">Nego </label>
      <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
      data-bind="options: negoOptions,
      optionsText: 'value', optionsValue: 'id' ">

      </select>
      </section>






      magento2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 15 hours ago







      Ajay Jain

















      asked 15 hours ago









      Ajay JainAjay Jain

      214




      214




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You need to add data-validate binding like below ;



           <section class="admin__page-section price-lab attribute-lab-3"> 
          <label class="attr-label" for="nego">Nego </label>
          <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
          data-bind="options: negoOptions,
          optionsText: 'value', optionsValue: 'id' " data-validate="required:true">
          </select>
          </section>





          share|improve this answer























          • Hi Vivek, thanks for replying I tried but it is not working.

            – Ajay Jain
            15 hours ago












          • Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

            – Ajay Jain
            2 hours ago











          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%2f268213%2fvalidation-issue-in-html-field%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









          0














          You need to add data-validate binding like below ;



           <section class="admin__page-section price-lab attribute-lab-3"> 
          <label class="attr-label" for="nego">Nego </label>
          <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
          data-bind="options: negoOptions,
          optionsText: 'value', optionsValue: 'id' " data-validate="required:true">
          </select>
          </section>





          share|improve this answer























          • Hi Vivek, thanks for replying I tried but it is not working.

            – Ajay Jain
            15 hours ago












          • Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

            – Ajay Jain
            2 hours ago















          0














          You need to add data-validate binding like below ;



           <section class="admin__page-section price-lab attribute-lab-3"> 
          <label class="attr-label" for="nego">Nego </label>
          <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
          data-bind="options: negoOptions,
          optionsText: 'value', optionsValue: 'id' " data-validate="required:true">
          </select>
          </section>





          share|improve this answer























          • Hi Vivek, thanks for replying I tried but it is not working.

            – Ajay Jain
            15 hours ago












          • Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

            – Ajay Jain
            2 hours ago













          0












          0








          0







          You need to add data-validate binding like below ;



           <section class="admin__page-section price-lab attribute-lab-3"> 
          <label class="attr-label" for="nego">Nego </label>
          <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
          data-bind="options: negoOptions,
          optionsText: 'value', optionsValue: 'id' " data-validate="required:true">
          </select>
          </section>





          share|improve this answer













          You need to add data-validate binding like below ;



           <section class="admin__page-section price-lab attribute-lab-3"> 
          <label class="attr-label" for="nego">Nego </label>
          <select required data-form-part="merchandising_builder_form" name="nego[]" class="negolist " id="nego" multiple size="8"
          data-bind="options: negoOptions,
          optionsText: 'value', optionsValue: 'id' " data-validate="required:true">
          </select>
          </section>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 15 hours ago









          Vivek KumarVivek Kumar

          2,5662729




          2,5662729












          • Hi Vivek, thanks for replying I tried but it is not working.

            – Ajay Jain
            15 hours ago












          • Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

            – Ajay Jain
            2 hours ago

















          • Hi Vivek, thanks for replying I tried but it is not working.

            – Ajay Jain
            15 hours ago












          • Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

            – Ajay Jain
            2 hours ago
















          Hi Vivek, thanks for replying I tried but it is not working.

          – Ajay Jain
          15 hours ago






          Hi Vivek, thanks for replying I tried but it is not working.

          – Ajay Jain
          15 hours ago














          Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

          – Ajay Jain
          2 hours ago





          Hi All, Now it's working in with jquery validation. i have added class class="required-entry"

          – Ajay Jain
          2 hours ago

















          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%2f268213%2fvalidation-issue-in-html-field%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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form