Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 1.19 KB


Here are the module settings you can place in your ColdBox.cfc by using the validation settings structure:

{% code-tabs %} {% code-tabs-item title="config/Coldbox.cfc" %}

validation = {
    // The third-party validation manager to use, by default it uses CBValidation.
    manager = "class path",
    // You can store global constraint rules here with unique names
    sharedConstraints = {
        name = {
            field = { constraints here }


{% endcode-tabs-item %} {% endcode-tabs %}

Key Type Required Default Description
manager instantiation path or WireBox ID false cbValidation.models.ValidationManager You can override the module manager with your own implementation. Just use an instantiation path or a valid WireBox object id.
sharedConstraints struct false {} This structure will hold all of your shared constraints for forms or/and objects.

{% hint style="danger" %} Important: The module will register several objects into WireBox using the @cbvalidation namespace. The validation manager is registered as ValidationManager@cbvalidation {% endhint %}

You can’t perform that action at this time.