Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3800

ValidateOptions not working with values Validator

$
0
0

Not getting any of the ValidateOptions to work with the values Validator.

Here is the snippet in question:

        Field::inst( 'branch' )
            ->validator( Validate::values( array('FAQ', 'FAM', 'FOK', 'FLR', 'FEL', 'FHS', 'FSA', 'FDF') ), ValidateOptions::inst()
                ->allowEmpty( false )
                ->optional( false )
                ->message( 'A Division ID is required' ) 
             ),

Any ideas/suggestions greatly appreciated.

Thanks,

Don


Viewing all articles
Browse latest Browse all 3800

Trending Articles