Custom field validation

We’ve added the ability to add a custom validation with the Regular Expression (ECMA flavour) to our fields on Pages: short textlong textemailurldate and number.

From now it is possible to customise the field by setting the RegEx, connecting it with the Default Value and if needed the Helper Text.

Possible use cases:

  • Short text/long text: do not use numbers or any special characters, RegEx example: ^[A-Za-z\\s]*$

  • Email: accept only company email, RegEx example: (.*)$

  • Url: accept only https urls, RegEx example: ^https(.*)

  • Date: accept dates only between 1900-2999, RegEx example: ^(?:0[1-9]|[12]\d|3[01])([\/.-])(?:0[1-9]|1[012])\1(?:19|20)\d\d$

  • Number: accept only numbers from 1 to 5, RegEx example: ^[1-5]+$