Formatting

VGS Collect.js masked input

Serializers

Use serializers to change the format of the data being sent to the server.

Examples:

Custom masking

An input mask refers to a string expression, defined by a developer, that constrains user input. This method is available for those types of fields: text, textarea, password, zip-code.

Example:

Define string replace pattern

Method returns a new string with some or all matches of a pattern replaced by a replacement. This method is available for those types of fields: text, textarea, password, zip-code.

Example:

More examples

Last updated