ValidateOptions not working with values Validator
ValidateOptions not working with values Validator
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
This question has an accepted answers - jump to answer
Answers
Those are two validations, so I believe they need to be split like this:
Hope that does the trick,
Colin
Thanks that worked perfectly