1b.app
Link copied -

OS - setting the contact field PREG expression to check the value of the field

Есть необходимость создания своих уникальных PREG выражений для проверки полей?
Это доступно в последней версии OneBox! Установить последнюю версию OneBox OS
Please tell me how the checkmark in the card of the additional contact field works
PREG expression to check field value
and show an example expression template for this function to work
Original question is available on version: ru Вячеслав Легеза

Answers:

You can enter a regular expression in this field. Before the new value is stored in the field, it will be checked, and if it does not fit the given condition, an error will be generated
for example, in the "PREG expression for checking the field value" is written: /number\s+number\d+/uis
for the value "number 1" - there will be an error, and for the value "number No. 1" - there will be no error and the value will be written in an additional field
This setting is not only in the additional fields of the contact, but also for the additional field of the process and the additional fields of the product of the process have this setting
08.10.2021, 09:58
Original comment available on version: ru

Легеза Вячеслав iCOLOR OneBox
ФОП Легеза В.В.
Personal license

Maria
OneBox production
Employee wrote:
You can enter a regular expression in this field. Before the new value is stored in the field, it will be checked, and if it does not fit the given condition, an error will be generated
for example, in the "PREG expression for checking the field value" is written: /number\s+number\d+/uis
for the value "number 1" - there will be an error, and for the value "number No. 1" - there will be no error and the value will be written in an additional field
This setting is not only in the additional fields of the contact, but also for the additional field of the process and the additional fields of the product of the process have this setting

Thank you, Masha
now to try
where can I see the rules for writing PREG templates in OneBox?
08.10.2021, 10:38
Вячеслав Легеза Original comment available on version: ru

This field uses regular regular expressions. You can use https://regex101.com/ to test your expressions
In places where non-standard PREG expressions are used (for example, the Turn a letter into a process action), an explanation about the use is indicated next to
08.10.2021, 10:50
Original comment available on version: ru

Легеза Вячеслав iCOLOR OneBox
ФОП Легеза В.В.
Personal license

Maria
OneBox production
Employee wrote:
This field uses regular regular expressions. You can use https://regex101.com/ to test your expressions
In places where non-standard PREG expressions are used (for example, the Turn a letter into a process action), an explanation about the use is indicated next to

Thanks!
08.10.2021, 11:09
Вячеслав Легеза Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment