Skip to content

Add regex constraints to a field

Charly POLY edited this page Jun 8, 2018 · 3 revisions

config prop can receive a updateFields property.

This properties is useful to update the form schema.

Example

{
   updateFields: {
      'user.phone_number': { pattern: '(^[0-9\+]{5,}$)|(^[a-zA-Z0-9]{0}$)' }
   }
}

More info