Answer the question
In order to leave comments, you need to log in
Checking e-mail in 1s Bitrix for correctness?
Hello. I ran into a problem, if the user enters email when placing an order (registration) and puts a space at the end, then Bitrix says that the email is not correct. How is email validation implemented in Bitrix? where can i force it to trim spaces?
Answer the question
In order to leave comments, you need to log in
The check_email
method is used for verification .
In general, I did not notice such a problem with extra spaces. The easiest way is to hang a js data send event handler that will trim extra spaces.
well, in 90% of cases, validation is on js, and these handlers can be located anywhere. Bitrix has nothing to do with it, if you look at the default template, then everything should work too. but in general, read about trim (removes spaces)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question