Here in the ordering https://chekhol.com.ua/basket/
There should be such alerts if the phone number is invalid (Fig. 1, Fig. 2, Fig. 3). It is also important that the alerts are displayed both when you type and when you copy-paste (focus).
The text "Enter a valid phone number" - color #ef9f8d, in size that would not go to the 2nd line (about 10px).
Icon - ⚠️ font-size: 20px, Color #ef9f8d
Also, you need to correct the form so that the default would be "+38", and there were no brackets in the mask itself, so that the format would be "+38 093 344 73 72".
And the most important point is that when inserting a phone number or autofilling, the form does not "absorb" numbers, because now if, roughly speaking, insert the number "0933447372", we will get "+38 (093) 3" as a result. It is necessary that the phone does not cut off, and if the phone does not fit the mask, then it continues after "+38", that is, it is supplemented
Here in the ordering https://chekhol.com.ua/basket/ There should be such alerts if the phone number is invalid (Fig. 1, Fig. 2, Fig. 3). It is also important that the alerts are displayed both when you type and when you copy-paste (focus). The text "Enter a valid phone number" - color #ef9f8d, in size that would not go to the 2nd line (about 10px). Icon - ⚠️ font-size: 20px, Color #ef9f8d Also, you need to correct the form so that the default would be "+38", and there were no brackets in the mask itself, so that the format would be "+38 093 344 73 72". And the most important point is that when inserting a phone number or autofilling, the form does not "absorb" numbers, because now if, roughly speaking, insert the number "0933447372", we will get "+38 (093) 3" as a result. It is necessary that the phone does not cut off, and if the phone does not fit the mask, then it continues after "+38", that is, it is supplemented
1. Validators are triggered when the form is submitted. You want that at any change of this field worked? 2. 1h
Tretyak Artur OneBox Insiders wrote: And the most important point is that when inserting a phone number or autofilling, the form does not "absorb" numbers, because now if, roughly speaking, insert the number "0933447372", we will get "+38 (093) 3" as a result. It is necessary that the phone does not cut off, and if the phone does not fit the mask, then it continues after "+38", that is, it is supplemented. At the same time, the validity check should also take place during copy-paste.
didn't understand here
1. Validators are triggered when the form is submitted. You want that at any change of this field worked?
2. 1h
[quote]
Tretyak Artur
OneBox Insiders wrote:
And the most important point is that when inserting a phone number or autofilling, the form does not "absorb" numbers, because now if, roughly speaking, insert the number "0933447372", we will get "+38 (093) 3" as a result. It is necessary that the phone does not cut off, and if the phone does not fit the mask, then it continues after "+38", that is, it is supplemented. At the same time, the validity check should also take place during copy-paste.
[/quote]
didn't understand here
In summary, what we do: for any change in the field, we do validation. If the validation fails, we highlight it, but let's place the order anyway. 2 hours for everything
In summary, what we do: for any change in the field, we do validation. If the validation fails, we highlight it, but let's place the order anyway. 2 hours for everything
Everything works, but there is one caveat when autofilling for some reason is limited to the phone number https://take.ms/RJwQD Or ctrl + c 380501234567 ctrl + v
Everything works, but there is one caveat when autofilling for some reason is limited to the phone number https://take.ms/RJwQD
Or ctrl + c 380501234567 ctrl + v
[quote]
Tretyak Artur
OneBox Insiders wrote:
[quote]
Derkach Dmytriy wrote:
0501234567
[/quote]
Norm. But if 380501234567 - then it is cut off
[/quote]
I will correct
[quote]
Tretyak Artur
OneBox Insiders wrote:
[quote]
Derkach Dmytriy wrote:
0501234567
[/quote]
Norm. But if 380501234567 - then it is cut off
[/quote]
Corrected. Check Now
It seems ok, but there is another problem :)) For some reason, when autofilling from an android, part of the phone number is cut off anyway. On idea even at any autocomplete. Can you please see what is wrong?
[quote]
Derkach Dmytriy wrote:
[quote]
Tretyak Artur
OneBox Insiders wrote:
[quote]
Derkach Dmytriy wrote:
0501234567
[/quote]
Norm. But if 380501234567 - then it is cut off
[/quote]
Corrected. Check Now
[/quote]
It seems ok, but there is another problem :))
For some reason, when autofilling from an android, part of the phone number is cut off anyway. On idea even at any autocomplete. Can you please see what is wrong?
[file]17949[/file]
[quote]
Derkach Dmytriy wrote:
[quote]
Tretyak Artur
OneBox Insiders wrote:
[quote]
Derkach Dmytriy wrote:
0501234567
[/quote]
Norm. But if 380501234567 - then it is cut off
[/quote]
Corrected. Check Now
[/quote]
?
Derkach Dmytriy wrote: autocomplete uses a different event than the insert looking for a solution how to fix the mask for the data type
Is there any solution?
[quote]
Derkach Dmytriy wrote:
autocomplete uses a different event than the insert
looking for a solution how to fix the mask for the data type
[/quote]
Is there any solution?
Derkach Dmytriy wrote: autocomplete uses a different event than the insert looking for a solution how to fix the mask for the data type
Hello. When will there be a decision? Already on fire.
[quote]
Derkach Dmytriy wrote:
autocomplete uses a different event than the insert
looking for a solution how to fix the mask for the data type
[/quote]
Hello. When will there be a decision?
Already on fire.
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up