M
M
MaxKondratenko2016-07-15 15:31:58
1C-Bitrix
MaxKondratenko, 2016-07-15 15:31:58

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

2 answer(s)
A
Alexey Emelyanov, 2016-07-18
@MaxKondratenko

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.

E
Egor Tregubenko, 2016-07-15
@Sinecuraweb

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 question

Ask a Question

731 491 924 answers to any question