How to implement a custom JavaScript validator for a backend configuration field?

See also: