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

            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