How to change the validation message in my account information section in myaccout page in Magento 2Magento 2 add custom validation ruleHow to stop customer registration if the validation fails?Magento 2 - How to extend customer account creation templateMagento 2: How to set custom validation message?Magento2 : How to remove email validation from customer account registration pageMagento 2.1 add a new section on my account pageMagento2: How to override paypal-express.html & authorizenet-directpost.html?How to add custom validation messages for shipping address in checkout page in magento 2How to remove validation from the “City” and “Street Address” Field on Customer Registration Page?Custom form field not showing validation messageMagento 2.2.3 How to change validation message Or add new custom rule in system config field

Overlapping String-Blocks

How can I get an unreasonable manager to approve time off?

Extreme flexible working hours: how to control people and activities?

Tabular make widths equal

Is this use of the expression "long past" correct?

Longest bridge/tunnel that can be cycled over/through?

Thread Pool C++ Implementation

Wooden cooking layout

How can I end combat quickly when the outcome is inevitable?

is it possible for a vehicle to be manufactured witout a catalitic converter

Bent Peugeot Carbolite 103 Frame

What is the maximum number of net attacks that one can make in a round?

Russian word for a male zebra

Why didn't Voldemort recognize that Dumbledore was affected by his curse?

How to manually rewind film?

What speaks against investing in precious metals?

Is it legal for a bar bouncer to confiscate a fake ID

How to trick the reader into thinking they're following a redshirt instead of the protagonist?

Is a lack of character descriptions a problem?

How come the nude protesters were not arrested?

Has there been a multiethnic Star Trek character?

Which languages would be most useful in Europe at the end of the 19th century?

Are there any important biographies of nobodies?

Non-aquatic eyes?



How to change the validation message in my account information section in myaccout page in Magento 2


Magento 2 add custom validation ruleHow to stop customer registration if the validation fails?Magento 2 - How to extend customer account creation templateMagento 2: How to set custom validation message?Magento2 : How to remove email validation from customer account registration pageMagento 2.1 add a new section on my account pageMagento2: How to override paypal-express.html & authorizenet-directpost.html?How to add custom validation messages for shipping address in checkout page in magento 2How to remove validation from the “City” and “Street Address” Field on Customer Registration Page?Custom form field not showing validation messageMagento 2.2.3 How to change validation message Or add new custom rule in system config field






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








1















I wish to add custom validation message in my account information section
enter image description here



Please provide me a solution to add custom message in below template.



vendor/magento/module-customer/view/frontend/templates/form/edit.phtml










share|improve this question
























  • try this data-msg-required="Please add confirm password.".

    – kunj
    Jul 11 '18 at 9:34











  • IS this possible for shipping address in checkout page

    – Jaisa
    Jul 11 '18 at 11:28











  • for which fields? actually yes we can but I want to clear for me.

    – kunj
    Jul 11 '18 at 11:45











  • Yes it works, But i have added global js, wish to add my custom validate class to Current password

    – Jaisa
    Jul 11 '18 at 13:00











  • Try this : magento.stackexchange.com/questions/190125/…

    – kunj
    Jul 12 '18 at 4:29

















1















I wish to add custom validation message in my account information section
enter image description here



Please provide me a solution to add custom message in below template.



vendor/magento/module-customer/view/frontend/templates/form/edit.phtml










share|improve this question
























  • try this data-msg-required="Please add confirm password.".

    – kunj
    Jul 11 '18 at 9:34











  • IS this possible for shipping address in checkout page

    – Jaisa
    Jul 11 '18 at 11:28











  • for which fields? actually yes we can but I want to clear for me.

    – kunj
    Jul 11 '18 at 11:45











  • Yes it works, But i have added global js, wish to add my custom validate class to Current password

    – Jaisa
    Jul 11 '18 at 13:00











  • Try this : magento.stackexchange.com/questions/190125/…

    – kunj
    Jul 12 '18 at 4:29













1












1








1








I wish to add custom validation message in my account information section
enter image description here



Please provide me a solution to add custom message in below template.



vendor/magento/module-customer/view/frontend/templates/form/edit.phtml










share|improve this question
















I wish to add custom validation message in my account information section
enter image description here



Please provide me a solution to add custom message in below template.



vendor/magento/module-customer/view/frontend/templates/form/edit.phtml







frontend customer-account magento-2.2.5 validation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 31 at 10:33









Kirti Nariya

1,525518




1,525518










asked Jul 11 '18 at 9:14









JaisaJaisa

93111044




93111044












  • try this data-msg-required="Please add confirm password.".

    – kunj
    Jul 11 '18 at 9:34











  • IS this possible for shipping address in checkout page

    – Jaisa
    Jul 11 '18 at 11:28











  • for which fields? actually yes we can but I want to clear for me.

    – kunj
    Jul 11 '18 at 11:45











  • Yes it works, But i have added global js, wish to add my custom validate class to Current password

    – Jaisa
    Jul 11 '18 at 13:00











  • Try this : magento.stackexchange.com/questions/190125/…

    – kunj
    Jul 12 '18 at 4:29

















  • try this data-msg-required="Please add confirm password.".

    – kunj
    Jul 11 '18 at 9:34











  • IS this possible for shipping address in checkout page

    – Jaisa
    Jul 11 '18 at 11:28











  • for which fields? actually yes we can but I want to clear for me.

    – kunj
    Jul 11 '18 at 11:45











  • Yes it works, But i have added global js, wish to add my custom validate class to Current password

    – Jaisa
    Jul 11 '18 at 13:00











  • Try this : magento.stackexchange.com/questions/190125/…

    – kunj
    Jul 12 '18 at 4:29
















try this data-msg-required="Please add confirm password.".

– kunj
Jul 11 '18 at 9:34





try this data-msg-required="Please add confirm password.".

– kunj
Jul 11 '18 at 9:34













IS this possible for shipping address in checkout page

– Jaisa
Jul 11 '18 at 11:28





IS this possible for shipping address in checkout page

– Jaisa
Jul 11 '18 at 11:28













for which fields? actually yes we can but I want to clear for me.

– kunj
Jul 11 '18 at 11:45





for which fields? actually yes we can but I want to clear for me.

– kunj
Jul 11 '18 at 11:45













Yes it works, But i have added global js, wish to add my custom validate class to Current password

– Jaisa
Jul 11 '18 at 13:00





Yes it works, But i have added global js, wish to add my custom validate class to Current password

– Jaisa
Jul 11 '18 at 13:00













Try this : magento.stackexchange.com/questions/190125/…

– kunj
Jul 12 '18 at 4:29





Try this : magento.stackexchange.com/questions/190125/…

– kunj
Jul 12 '18 at 4:29










1 Answer
1






active

oldest

votes


















0














You can add this data-msg-required="Please add confirm password." for custom validation password and for Validation you can try this.



create requirejs-config.js in your module with this code.



var config = 
config:
mixins:
'mage/validation':
'Vendor_Module/js/validation-mixin': true






Now add create validation-mixin.js file at Vendor_Module/view/frontend/web/js/validation-mixin.js with this code.



define([
'jquery'
], function ($)
"use strict";

return function ()
$.validator.addMethod(
'validate-minimum-age',
function (value)
// Some custom validation stuff here
return true or false;
,
$.mage.__('Your validation error message')
);

);


We can use same way for checkout.






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%2f233112%2fhow-to-change-the-validation-message-in-my-account-information-section-in-myacco%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 can add this data-msg-required="Please add confirm password." for custom validation password and for Validation you can try this.



    create requirejs-config.js in your module with this code.



    var config = 
    config:
    mixins:
    'mage/validation':
    'Vendor_Module/js/validation-mixin': true






    Now add create validation-mixin.js file at Vendor_Module/view/frontend/web/js/validation-mixin.js with this code.



    define([
    'jquery'
    ], function ($)
    "use strict";

    return function ()
    $.validator.addMethod(
    'validate-minimum-age',
    function (value)
    // Some custom validation stuff here
    return true or false;
    ,
    $.mage.__('Your validation error message')
    );

    );


    We can use same way for checkout.






    share|improve this answer



























      0














      You can add this data-msg-required="Please add confirm password." for custom validation password and for Validation you can try this.



      create requirejs-config.js in your module with this code.



      var config = 
      config:
      mixins:
      'mage/validation':
      'Vendor_Module/js/validation-mixin': true






      Now add create validation-mixin.js file at Vendor_Module/view/frontend/web/js/validation-mixin.js with this code.



      define([
      'jquery'
      ], function ($)
      "use strict";

      return function ()
      $.validator.addMethod(
      'validate-minimum-age',
      function (value)
      // Some custom validation stuff here
      return true or false;
      ,
      $.mage.__('Your validation error message')
      );

      );


      We can use same way for checkout.






      share|improve this answer

























        0












        0








        0







        You can add this data-msg-required="Please add confirm password." for custom validation password and for Validation you can try this.



        create requirejs-config.js in your module with this code.



        var config = 
        config:
        mixins:
        'mage/validation':
        'Vendor_Module/js/validation-mixin': true






        Now add create validation-mixin.js file at Vendor_Module/view/frontend/web/js/validation-mixin.js with this code.



        define([
        'jquery'
        ], function ($)
        "use strict";

        return function ()
        $.validator.addMethod(
        'validate-minimum-age',
        function (value)
        // Some custom validation stuff here
        return true or false;
        ,
        $.mage.__('Your validation error message')
        );

        );


        We can use same way for checkout.






        share|improve this answer













        You can add this data-msg-required="Please add confirm password." for custom validation password and for Validation you can try this.



        create requirejs-config.js in your module with this code.



        var config = 
        config:
        mixins:
        'mage/validation':
        'Vendor_Module/js/validation-mixin': true






        Now add create validation-mixin.js file at Vendor_Module/view/frontend/web/js/validation-mixin.js with this code.



        define([
        'jquery'
        ], function ($)
        "use strict";

        return function ()
        $.validator.addMethod(
        'validate-minimum-age',
        function (value)
        // Some custom validation stuff here
        return true or false;
        ,
        $.mage.__('Your validation error message')
        );

        );


        We can use same way for checkout.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 12 '18 at 5:03









        kunjkunj

        2,6822523




        2,6822523



























            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%2f233112%2fhow-to-change-the-validation-message-in-my-account-information-section-in-myacco%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

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

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?