Kernel::System::DataValidation::Validator::DynamicField::DynamicFieldName

NAME

Kernel::System::DataValidation::Validator::DynamicField::DynamicFieldName – Validator that verifies a given DynamicFieldName.

PUBLIC INTERFACE

Provides a Check method, that will be called by the Kernel::System::DataValidation backend.

Example()

Returns an example of a possible value to be verified.

Check()

Lookups the given DynamicFieldID in the database. For more information about the dynamic field backend, please refer to Kernel::System::DynamicField and Kernel::System::DynamicField::Backend.

    my $True = $Validator->Check(
        Arguments => [ { Valid => 1 } ],    # Defines if the dynamic field must be valid to success the check, default: 1
        Value     => 1,
    );

    my $False = $Validator->Check(
        Value => 'WrongDynamicFieldName',
    );
Scroll to Top