Answer the question
In order to leave comments, you need to log in
Regular value how to substitute zero?
There is validation in yaml:
mask: '[00000000000000000000]' # 20 цифр
validators:
regExp:
value: "(^$)|(^[0-9]{20}$)" # Регулярное выражение допускает пустую строку или строку из цифр
message: Номер указан не полностью
maxLength:
value: 20
message: Номер должен состоять из 20 цифр
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question