M2 | Field Validation is not working with dynamic rows in system configurationM2 | How to set limit of dynamic rows?Magento2 Dynamic System->Configuration CommentsDynamic text in prototype field validationValidation not working on custom field at register.phtmlHow To Add Magento2 Dynamic Rows DeleteAction?UIcomponent Dynamic Rows . Image Upload ProblemHide dynamic-rows column via jsSystem Configuration field ValidationMagento 2 : Specific Range Validation in system configuration fieldHow to create dynamic rows field in custom Ui component formM2 | How to get value of dynamic generated rows values created at system configuration into template?

Morally unwholesome deeds knowing the consequences but without unwholesome intentions

Did Henry V’s archers at Agincourt fight with no pants / breeches on because of dysentery?

Are some sounds more pleasing to the ear, like ㄴ and ㅁ?

How to set the font color of quantity objects (Version 11.3 vs version 12)?

You look catfish vs You look like a catfish

Tikz oriented simplex

Transfer over $10k

How to creep the reader out with what seems like a normal person?

Binary Numbers Magic Trick

Find the coordinate of two line segments that are perpendicular

What does 「再々起」mean?

How to set printing options as reverse order as default on 18.04

Feels like I am getting dragged in office politics

Pawn Sacrifice Justification

Why is the origin of “threshold” uncertain?

Is it cheaper to drop cargo drop than to land it?

How did Arya manage the sneak attack?

Phrase for the opposite of "foolproof"

Is GOCE a satellite or aircraft?

Illegal assignment from SObject to Contact

how can i test catch block?

Reverse the word in a string with the same order in javascript

What is the strongest case that can be made in favour of the UK regaining some control over fishing policy after Brexit?

When did stoichiometry begin to be taught in U.S. high schools?



M2 | Field Validation is not working with dynamic rows in system configuration


M2 | How to set limit of dynamic rows?Magento2 Dynamic System->Configuration CommentsDynamic text in prototype field validationValidation not working on custom field at register.phtmlHow To Add Magento2 Dynamic Rows DeleteAction?UIcomponent Dynamic Rows . Image Upload ProblemHide dynamic-rows column via jsSystem Configuration field ValidationMagento 2 : Specific Range Validation in system configuration fieldHow to create dynamic rows field in custom Ui component formM2 | How to get value of dynamic generated rows values created at system configuration into template?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have applied filed validation in system.xml file it is working for other fields but not applying on Dynamic fields.



Here is my Dynamic Field:



 <field id="add_item" translate="label" sortOrder="15" showInDefault="0" showInWebsite="1" showInStore="0">
<label>Set Dropdown Prices</label>
<frontend_model>VendorModuleBlockAdminhtmlMenuFieldAdditionalItem</frontend_model>
<backend_model>VendorModuleBlockAdminhtmlMenuConfigBackendAdditionalItem</backend_model>
<validate>validate-digits</validate>
</field>


Update



Here is my column in Frontend Model:



$this->addColumn(
'productcost',
[
'label' => __('Voucher Cost'),
'size' => '150px',
'class' => 'required-entry'
]
);









share|improve this question






























    1















    I have applied filed validation in system.xml file it is working for other fields but not applying on Dynamic fields.



    Here is my Dynamic Field:



     <field id="add_item" translate="label" sortOrder="15" showInDefault="0" showInWebsite="1" showInStore="0">
    <label>Set Dropdown Prices</label>
    <frontend_model>VendorModuleBlockAdminhtmlMenuFieldAdditionalItem</frontend_model>
    <backend_model>VendorModuleBlockAdminhtmlMenuConfigBackendAdditionalItem</backend_model>
    <validate>validate-digits</validate>
    </field>


    Update



    Here is my column in Frontend Model:



    $this->addColumn(
    'productcost',
    [
    'label' => __('Voucher Cost'),
    'size' => '150px',
    'class' => 'required-entry'
    ]
    );









    share|improve this question


























      1












      1








      1








      I have applied filed validation in system.xml file it is working for other fields but not applying on Dynamic fields.



      Here is my Dynamic Field:



       <field id="add_item" translate="label" sortOrder="15" showInDefault="0" showInWebsite="1" showInStore="0">
      <label>Set Dropdown Prices</label>
      <frontend_model>VendorModuleBlockAdminhtmlMenuFieldAdditionalItem</frontend_model>
      <backend_model>VendorModuleBlockAdminhtmlMenuConfigBackendAdditionalItem</backend_model>
      <validate>validate-digits</validate>
      </field>


      Update



      Here is my column in Frontend Model:



      $this->addColumn(
      'productcost',
      [
      'label' => __('Voucher Cost'),
      'size' => '150px',
      'class' => 'required-entry'
      ]
      );









      share|improve this question
















      I have applied filed validation in system.xml file it is working for other fields but not applying on Dynamic fields.



      Here is my Dynamic Field:



       <field id="add_item" translate="label" sortOrder="15" showInDefault="0" showInWebsite="1" showInStore="0">
      <label>Set Dropdown Prices</label>
      <frontend_model>VendorModuleBlockAdminhtmlMenuFieldAdditionalItem</frontend_model>
      <backend_model>VendorModuleBlockAdminhtmlMenuConfigBackendAdditionalItem</backend_model>
      <validate>validate-digits</validate>
      </field>


      Update



      Here is my column in Frontend Model:



      $this->addColumn(
      'productcost',
      [
      'label' => __('Voucher Cost'),
      'size' => '150px',
      'class' => 'required-entry'
      ]
      );






      magento2 validation dynamic-rows






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 25 at 9:13







      Ajwad Taqvi

















      asked Apr 25 at 7:05









      Ajwad TaqviAjwad Taqvi

      417116




      417116




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Move size into style class



           $this->addColumn('productcost', ['label' => __('Voucher Cost'),'class' => 'required-entry validate-number','style' => 'width:50px']);





          share|improve this answer

























          • required-entry class is already in my frontend model but it has no effect, please see the update in question

            – Ajwad Taqvi
            Apr 25 at 9:14











          • Kindly share error log

            – ARUNPRABAKARAN M
            Apr 25 at 9:21











          • Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

            – Ajwad Taqvi
            Apr 25 at 9:37











          • Good question Ajwad Taqvi. Kindly post as another question.

            – ARUNPRABAKARAN M
            Apr 25 at 9:49











          • Posted: magento.stackexchange.com/questions/272414/…

            – Ajwad Taqvi
            Apr 25 at 10:22











          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%2f272378%2fm2-field-validation-is-not-working-with-dynamic-rows-in-system-configuration%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














          Move size into style class



           $this->addColumn('productcost', ['label' => __('Voucher Cost'),'class' => 'required-entry validate-number','style' => 'width:50px']);





          share|improve this answer

























          • required-entry class is already in my frontend model but it has no effect, please see the update in question

            – Ajwad Taqvi
            Apr 25 at 9:14











          • Kindly share error log

            – ARUNPRABAKARAN M
            Apr 25 at 9:21











          • Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

            – Ajwad Taqvi
            Apr 25 at 9:37











          • Good question Ajwad Taqvi. Kindly post as another question.

            – ARUNPRABAKARAN M
            Apr 25 at 9:49











          • Posted: magento.stackexchange.com/questions/272414/…

            – Ajwad Taqvi
            Apr 25 at 10:22















          0














          Move size into style class



           $this->addColumn('productcost', ['label' => __('Voucher Cost'),'class' => 'required-entry validate-number','style' => 'width:50px']);





          share|improve this answer

























          • required-entry class is already in my frontend model but it has no effect, please see the update in question

            – Ajwad Taqvi
            Apr 25 at 9:14











          • Kindly share error log

            – ARUNPRABAKARAN M
            Apr 25 at 9:21











          • Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

            – Ajwad Taqvi
            Apr 25 at 9:37











          • Good question Ajwad Taqvi. Kindly post as another question.

            – ARUNPRABAKARAN M
            Apr 25 at 9:49











          • Posted: magento.stackexchange.com/questions/272414/…

            – Ajwad Taqvi
            Apr 25 at 10:22













          0












          0








          0







          Move size into style class



           $this->addColumn('productcost', ['label' => __('Voucher Cost'),'class' => 'required-entry validate-number','style' => 'width:50px']);





          share|improve this answer















          Move size into style class



           $this->addColumn('productcost', ['label' => __('Voucher Cost'),'class' => 'required-entry validate-number','style' => 'width:50px']);






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 25 at 9:24

























          answered Apr 25 at 7:29









          ARUNPRABAKARAN MARUNPRABAKARAN M

          601114




          601114












          • required-entry class is already in my frontend model but it has no effect, please see the update in question

            – Ajwad Taqvi
            Apr 25 at 9:14











          • Kindly share error log

            – ARUNPRABAKARAN M
            Apr 25 at 9:21











          • Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

            – Ajwad Taqvi
            Apr 25 at 9:37











          • Good question Ajwad Taqvi. Kindly post as another question.

            – ARUNPRABAKARAN M
            Apr 25 at 9:49











          • Posted: magento.stackexchange.com/questions/272414/…

            – Ajwad Taqvi
            Apr 25 at 10:22

















          • required-entry class is already in my frontend model but it has no effect, please see the update in question

            – Ajwad Taqvi
            Apr 25 at 9:14











          • Kindly share error log

            – ARUNPRABAKARAN M
            Apr 25 at 9:21











          • Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

            – Ajwad Taqvi
            Apr 25 at 9:37











          • Good question Ajwad Taqvi. Kindly post as another question.

            – ARUNPRABAKARAN M
            Apr 25 at 9:49











          • Posted: magento.stackexchange.com/questions/272414/…

            – Ajwad Taqvi
            Apr 25 at 10:22
















          required-entry class is already in my frontend model but it has no effect, please see the update in question

          – Ajwad Taqvi
          Apr 25 at 9:14





          required-entry class is already in my frontend model but it has no effect, please see the update in question

          – Ajwad Taqvi
          Apr 25 at 9:14













          Kindly share error log

          – ARUNPRABAKARAN M
          Apr 25 at 9:21





          Kindly share error log

          – ARUNPRABAKARAN M
          Apr 25 at 9:21













          Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

          – Ajwad Taqvi
          Apr 25 at 9:37





          Yes moving size in style worked for me.. Can u tell how to limit the number of dynamic rows like we should extend it up to 20 rows..

          – Ajwad Taqvi
          Apr 25 at 9:37













          Good question Ajwad Taqvi. Kindly post as another question.

          – ARUNPRABAKARAN M
          Apr 25 at 9:49





          Good question Ajwad Taqvi. Kindly post as another question.

          – ARUNPRABAKARAN M
          Apr 25 at 9:49













          Posted: magento.stackexchange.com/questions/272414/…

          – Ajwad Taqvi
          Apr 25 at 10:22





          Posted: magento.stackexchange.com/questions/272414/…

          – Ajwad Taqvi
          Apr 25 at 10:22

















          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%2f272378%2fm2-field-validation-is-not-working-with-dynamic-rows-in-system-configuration%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

          Sum ergo cogito? 1 nng

          三茅街道4182Guuntc Dn precexpngmageondP