ID: slug

The slug field type copies the value of it's dependent text field and converts the value to a string that can become part of a url. The slug field will automatically update when the value of it's dependent field changes. The emptyOnly property causes the field to be updated only if the field is currently empty.

The slugified value will be derived from the dependend field value by making it lower case and replacing white space with '-'.

An optional argument "filterRegex" can be used to override the default regex for matching chars to filter out. Default is whitespace only. ex.: "[\s:]+" will filter white space and ':' characters

Sample configuration:

    "type": "slug",
    "dependentField": "title",
    "emptyOnly": true,
    "filterRegex": "[^a-zA-Z0-9_]+"