Hello,
I would like to know if it's possible to have a validator only on specific action at field level :
Here, there is never 'test' in my log, what is wrong ?
But with Global validator, it works fine.
// Fields Validator
->fields(
Field::inst( 'USERID' )
->validator(function ($editor, $action, $data){
if ($action === Editor::ACTION_EDIT){
error_log('test');
}
return true;
})