Answer the question
In order to leave comments, you need to log in
Problem with field and input mask for phone?
Good evening.
If I place an order under an authorized user, I see the following:
All blocks are collapsed and the fields are automatically filled.
If for some reason the user wants to change something in his data, then by clicking on the "Change" button, I see:
And you can see that the number has been substituted starting from 7 (from 7 digits 11), because there is a mask in this field, only 10 digits fit, because of this, the last digit 2 is simply cut out.
After all I see:
Instead of +7 (937) 986-48-92 I got +7 (793) 798-64-89.
The client has automatic delivery of content via SMS on the number. I tried to cut this 7 at the beginning of the line through the OnSaleComponentOrderProperties event, but I realized that if the user does not want to change any data, then a number of this kind 937 986-48-92 is not suitable.
The task seems to be trivial, but even I have stalled on it, throw some ideas please.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question