Customer registration: how to validate 'date of birth' of customer?Create Account not working properly for Guest User : Delete operation is forbidden for current area (Enterprise Magento ver. 2.1.0)Set customer group from customer registration formUpload a file on customer registration page Magento 2UI Component Form Validation: Pattern methodMagento 2 validate filesizeValidate mass action columnAssign a customer group on registration. magento 2Custom added field to checkout is not validating when I go the next stephow to generate custom password for customer registration in Magento2?

Violin - Can double stops be played when the strings are not next to each other?

Why do passenger jet manufacturers design their planes with stall prevention systems?

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

What is the adequate fee for a reveal operation?

How to terminate ping <dest> &

Employee lack of ownership

Alternative heavy right tailed distribution to exponential distribution

Can I use USB data pins as power source

Knife as defense against stray dogs

Converting a variable frequency to TTL HIGH and LOW levels, based on a fixed (possible non-fixed?) frequency

Shortcut for setting origin to vertex

What is the Japanese sound word for the clinking of money?

What did “the good wine” (τὸν καλὸν οἶνον) mean in John 2:10?

How do I change two letters closest to a string and one letter immediately after a string using Notepad++?

Are Roman Catholic priests ever addressed as pastor

If I can solve Sudoku, can I solve the Travelling Salesman Problem (TSP)? If so, how?

How to make healing in an exploration game interesting

Why does overlay work only on the first tcolorbox?

How do I hide Chekhov's Gun?

Why Choose Less Effective Armour Types?

Min function accepting varying number of arguments in C++17

et qui - how do you really understand that kind of phraseology?

What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?

Adventure Game (text based) in C++



Customer registration: how to validate 'date of birth' of customer?


Create Account not working properly for Guest User : Delete operation is forbidden for current area (Enterprise Magento ver. 2.1.0)Set customer group from customer registration formUpload a file on customer registration page Magento 2UI Component Form Validation: Pattern methodMagento 2 validate filesizeValidate mass action columnAssign a customer group on registration. magento 2Custom added field to checkout is not validating when I go the next stephow to generate custom password for customer registration in Magento2?













1















Need to check whether user has 18 years old (that's simply to do in javascript) then display error/success message and pass further.



How to add validation for 'date of birth' field in customer registration form?



Which js I should extend for this purpose?










share|improve this question














bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    1















    Need to check whether user has 18 years old (that's simply to do in javascript) then display error/success message and pass further.



    How to add validation for 'date of birth' field in customer registration form?



    Which js I should extend for this purpose?










    share|improve this question














    bumped to the homepage by Community 9 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1








      Need to check whether user has 18 years old (that's simply to do in javascript) then display error/success message and pass further.



      How to add validation for 'date of birth' field in customer registration form?



      Which js I should extend for this purpose?










      share|improve this question














      Need to check whether user has 18 years old (that's simply to do in javascript) then display error/success message and pass further.



      How to add validation for 'date of birth' field in customer registration form?



      Which js I should extend for this purpose?







      magento-2.1






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 16 '16 at 15:29









      white-impwhite-imp

      341526




      341526





      bumped to the homepage by Community 9 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 9 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You should extend this file with your own validation rule.




          '/lib/web/mage/validation.js'




          After you added your own validation rule just add the following to your input field



           data-validate="'Your-validation-name':true"


          example:



          data-validate="'custom-age-validation':true"





          share|improve this answer






















            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%2f131647%2fcustomer-registration-how-to-validate-date-of-birth-of-customer%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 should extend this file with your own validation rule.




            '/lib/web/mage/validation.js'




            After you added your own validation rule just add the following to your input field



             data-validate="'Your-validation-name':true"


            example:



            data-validate="'custom-age-validation':true"





            share|improve this answer



























              0














              You should extend this file with your own validation rule.




              '/lib/web/mage/validation.js'




              After you added your own validation rule just add the following to your input field



               data-validate="'Your-validation-name':true"


              example:



              data-validate="'custom-age-validation':true"





              share|improve this answer

























                0












                0








                0







                You should extend this file with your own validation rule.




                '/lib/web/mage/validation.js'




                After you added your own validation rule just add the following to your input field



                 data-validate="'Your-validation-name':true"


                example:



                data-validate="'custom-age-validation':true"





                share|improve this answer













                You should extend this file with your own validation rule.




                '/lib/web/mage/validation.js'




                After you added your own validation rule just add the following to your input field



                 data-validate="'Your-validation-name':true"


                example:



                data-validate="'custom-age-validation':true"






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 26 '17 at 14:20









                klictklict

                31718




                31718



























                    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%2f131647%2fcustomer-registration-how-to-validate-date-of-birth-of-customer%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

                    Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

                    Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»

                    Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр