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;
I wish to add custom validation message in my account information section
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
|
show 2 more comments
I wish to add custom validation message in my account information section
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
try thisdata-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
|
show 2 more comments
I wish to add custom validation message in my account information section
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
I wish to add custom validation message in my account information section
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
frontend customer-account magento-2.2.5 validation
edited May 31 at 10:33
Kirti Nariya
1,525518
1,525518
asked Jul 11 '18 at 9:14
JaisaJaisa
93111044
93111044
try thisdata-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
|
show 2 more comments
try thisdata-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
|
show 2 more comments
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jul 12 '18 at 5:03
kunjkunj
2,6822523
2,6822523
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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