Built-in Form Validator plugins

NameDescription

SampleFormValidator

Example whole-form validator tied to the demo "Technology" metadata group used elsewhere in this documentation (okp:technology.type, okp:technology.language): rejects the combination of type "t2" (New Feature) with language "php".

The FormValidator interface is deprecated as of version 8.1.15 in favor of Creating your own FormInterceptor plugin. This sample is kept for reference only.

Not wired to a metadata group automatically - it is referenced by canonical class name in the validatorClassName attribute of a property-group element in the metadata XML definition. See Creating your own Form Validator plugin for the interface and a full XML example.

Table of contents [ Hide Show ]