A
A
Andrey2017-07-05 12:21:48
PHP
Andrey, 2017-07-05 12:21:48

How to check the phone number field on 1c bitrix?

Good afternoon!
The site has a registration form, the phone field is formed using type="text"

<input size="30" type="text" name="REGISTER[<?=$FIELD?>]" value="<?=$arResult["VALUES"][$FIELD]?>" class="bx-auth-input"/>

How to check for a phone number in the correct format, I did it through jquery.maskedinput
, it sometimes works, sometimes it doesn’t
.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2017-07-05
@gromdron

1) Register js-extension in Bitrix
2) Declare your authorization and registration
components 3) Connect your js-ext to component_epilog.php
4) Add validation code to script.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question