Validation de champ dépendante ExtJs

Comment puis-je valider un champ qui dépend d'un autre domaine?

{
  xtype:          'textfield',
  name:           'name2',
  vtype:          'type',      //how to write the validation code for this if it 
                               //depends on the value of another field?
  allowBlank:     false
}

source d'informationauteur fastcodejava | 2011-03-03