V
V
Vyacheslav Zhgilev2022-01-29 11:19:43
Bitrix24
Vyacheslav Zhgilev, 2022-01-29 11:19:43

How to make fields with automatic separators for SNILS and cadastral number?

Guys, the task is as follows ... You
need to add 2 fields:
1. SNILS - when filling in, there should be automatic division of the format 123-123-123 00
2. Cadastral number - when filling in, there should be automatic division of the format 90:01:010104:775

In general - space : must be entered automatically

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2022-01-31
@jazzz

In general - a space: should be affixed automatically

In the cloud, this is only possible if you make your own field type. https://dev.1c-bitrix.ru/rest_help/application_emb...
In a box, it is more difficult to do this: subscribe to the page rendering event, determine that this page is a CRM deal card, connect your js library. Subscribe to the page in your js library and check that the required field is activated, and then apply masked input https://dev.1c-bitrix.ru/api_help/js_lib/js-library.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question