Magento 2 - How to validate your input with custom validation Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to validate dynamically created forms on same page with VarienForm?M2: Custom form validationMagento 2: Custom validation for system.xmlMagento 2 checkout input field validation possibilityMagento 2: How to give Admin Input Field ValidationMagento 2: Custom validation on product attributeValidate form field on perticular action in Magento 2Add further checkout form validation Magento 2How to validate Magento 2 form field input value with database table field to find out if already exists?Magento 2 validate the form input using plugin and save the modified data

Compiling and throwing simple dynamic exceptions at runtime for JVM

A journey... into the MIND

Converting a text document with special format to Pandas DataFrame

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

Assertions In A Mock Callout Test

Does the Pact of the Blade warlock feature allow me to customize the properties of the pact weapon I create?

Should man-made satellites feature an intelligent inverted "cow catcher"?

Why is one lightbulb in a string illuminated?

"Destructive force" carried by a B-52?

Is "ein Herz wie das meine" an antiquated or colloquial use of the possesive pronoun?

Can a Wizard take the Magic Initiate feat and select spells from the Wizard list?

Etymology of 見舞い

tabularx column has extra padding at right?

Why do C and C++ allow the expression (int) + 4*5?

Pointing to problems without suggesting solutions

What is the ongoing value of the Kanban board to the developers as opposed to management

Help Recreating a Table

Why aren't these two solutions equivalent? Combinatorics problem

What helicopter has the most rotor blades?

Can I take recommendation from someone I met at a conference?

Can a Knight grant Knighthood to another?

How to keep bees out of canned beverages?

Can gravitational waves pass through a black hole?

What is the difference between 准时 and 按时?



Magento 2 - How to validate your input with custom validation



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to validate dynamically created forms on same page with VarienForm?M2: Custom form validationMagento 2: Custom validation for system.xmlMagento 2 checkout input field validation possibilityMagento 2: How to give Admin Input Field ValidationMagento 2: Custom validation on product attributeValidate form field on perticular action in Magento 2Add further checkout form validation Magento 2How to validate Magento 2 form field input value with database table field to find out if already exists?Magento 2 validate the form input using plugin and save the modified data



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








1















We have created custom attribute name "username" for customers.



We need to validate the username by allowing certain characters only.



i.e. Username should contain : a-z A-Z 0-9 & .@_- only









share




























    1















    We have created custom attribute name "username" for customers.



    We need to validate the username by allowing certain characters only.



    i.e. Username should contain : a-z A-Z 0-9 & .@_- only









    share
























      1












      1








      1








      We have created custom attribute name "username" for customers.



      We need to validate the username by allowing certain characters only.



      i.e. Username should contain : a-z A-Z 0-9 & .@_- only









      share














      We have created custom attribute name "username" for customers.



      We need to validate the username by allowing certain characters only.



      i.e. Username should contain : a-z A-Z 0-9 & .@_- only







      magento2 customer customer-account





      share












      share










      share



      share










      asked 4 mins ago









      Sudhanshu BajajSudhanshu Bajaj

      283




      283




















          0






          active

          oldest

          votes












          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%2f271011%2fmagento-2-how-to-validate-your-input-with-custom-validation%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f271011%2fmagento-2-how-to-validate-your-input-with-custom-validation%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

          Nidaros erkebispedøme

          Birsay

          Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?