Magento 2: Allow Arabic string in “letters-only” validation Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Telephone Number Validation Error Magento 1.8.1Allow only numeric postcode MagentoValidation for dropdown magentoMagento 2: phone number validation (only accepts numbers)Magento 2 checkout input field validation possibilityMagento2: Email checkout validation on submit onlyTinyMCE - Update Validation Config Settings to allow <div> inside <a>Magento 2 Default form validationMagento 2 checkout postcode validation only numbersMagento 2: add Validation on first name and last name so it only accept text value, not numeric
Is there a kind of relay that only consumes power when switching?
Hangman Game with C++
Amount of permutations on an NxNxN Rubik's Cube
Generate an RGB colour grid
How do I use the new nonlinear finite element in Mathematica 12 for this equation?
How does the math work when buying airline miles?
Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?
AppleTVs create a chatty alternate WiFi network
Why do we need to use the builder design pattern when we can do the same thing with setters?
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
Do any jurisdictions seriously consider reclassifying social media websites as publishers?
Why is Nikon 1.4g better when Nikon 1.8g is sharper?
How does light 'choose' between wave and particle behaviour?
Is a ledger board required if the side of my house is wood?
How to play a character with a disability or mental disorder without being offensive?
Why does the remaining Rebel fleet at the end of Rogue One seem dramatically larger than the one in A New Hope?
An adverb for when you're not exaggerating
What initially awakened the Balrog?
How were pictures turned from film to a big picture in a picture frame before digital scanning?
How to write this math term? with cases it isn't working
How can I reduce the gap between left and right of cdot with a macro?
How to write the following sign?
What order were files/directories outputted in dir?
Can anything be seen from the center of the Boötes void? How dark would it be?
Magento 2: Allow Arabic string in “letters-only” validation
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Telephone Number Validation Error Magento 1.8.1Allow only numeric postcode MagentoValidation for dropdown magentoMagento 2: phone number validation (only accepts numbers)Magento 2 checkout input field validation possibilityMagento2: Email checkout validation on submit onlyTinyMCE - Update Validation Config Settings to allow <div> inside <a>Magento 2 Default form validationMagento 2 checkout postcode validation only numbersMagento 2: add Validation on first name and last name so it only accept text value, not numeric
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'am working on the Magento store that have Arabic language store and English language store.
I have added the "letters-only" validation on firstName input field on registration page and when I check this validation on English version its working fine, but in Arabic version validation not working.
"Letters only" validation not accept Arabic string.
I'm trying below rules one by one but no luck:-
//return this.optional(element) || !/^[0-9_]+$/i.test(value);
return this.optional(element) || /^[pArabica-zA-Z- .ـ]+$/i.test(value);
return this.optional(element) || /^[a-zA-Z-+,()/'spArabic]+$/i.test(value);
return this.optional(element) || /^[spArabic]+$/i.test(value);
Please suggest any solution to get rid this issue So in Arabic version user can add their information.
Thanks!!!
magento2.2.6 validation customer-registration
add a comment |
I'am working on the Magento store that have Arabic language store and English language store.
I have added the "letters-only" validation on firstName input field on registration page and when I check this validation on English version its working fine, but in Arabic version validation not working.
"Letters only" validation not accept Arabic string.
I'm trying below rules one by one but no luck:-
//return this.optional(element) || !/^[0-9_]+$/i.test(value);
return this.optional(element) || /^[pArabica-zA-Z- .ـ]+$/i.test(value);
return this.optional(element) || /^[a-zA-Z-+,()/'spArabic]+$/i.test(value);
return this.optional(element) || /^[spArabic]+$/i.test(value);
Please suggest any solution to get rid this issue So in Arabic version user can add their information.
Thanks!!!
magento2.2.6 validation customer-registration
add a comment |
I'am working on the Magento store that have Arabic language store and English language store.
I have added the "letters-only" validation on firstName input field on registration page and when I check this validation on English version its working fine, but in Arabic version validation not working.
"Letters only" validation not accept Arabic string.
I'm trying below rules one by one but no luck:-
//return this.optional(element) || !/^[0-9_]+$/i.test(value);
return this.optional(element) || /^[pArabica-zA-Z- .ـ]+$/i.test(value);
return this.optional(element) || /^[a-zA-Z-+,()/'spArabic]+$/i.test(value);
return this.optional(element) || /^[spArabic]+$/i.test(value);
Please suggest any solution to get rid this issue So in Arabic version user can add their information.
Thanks!!!
magento2.2.6 validation customer-registration
I'am working on the Magento store that have Arabic language store and English language store.
I have added the "letters-only" validation on firstName input field on registration page and when I check this validation on English version its working fine, but in Arabic version validation not working.
"Letters only" validation not accept Arabic string.
I'm trying below rules one by one but no luck:-
//return this.optional(element) || !/^[0-9_]+$/i.test(value);
return this.optional(element) || /^[pArabica-zA-Z- .ـ]+$/i.test(value);
return this.optional(element) || /^[a-zA-Z-+,()/'spArabic]+$/i.test(value);
return this.optional(element) || /^[spArabic]+$/i.test(value);
Please suggest any solution to get rid this issue So in Arabic version user can add their information.
Thanks!!!
magento2.2.6 validation customer-registration
magento2.2.6 validation customer-registration
edited Apr 16 at 5:22
Purushotam Sharma
asked Apr 15 at 8:36
Purushotam SharmaPurushotam Sharma
8801730
8801730
add a comment |
add a comment |
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
);
);
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%2f270079%2fmagento-2-allow-arabic-string-in-letters-only-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
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%2f270079%2fmagento-2-allow-arabic-string-in-letters-only-validation%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