| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Cannot_Cancel_When_Application</fullName> | 
|     <active>true</active> | 
|     <errorConditionFormula>ISPICKVAL(Consum_Apply__r.Status__c, '申请中') | 
| &&  ISCHANGED(Cancel_Select__c) | 
| && Cancel_Select__c = true</errorConditionFormula> | 
|     <errorDisplayField>Cancel_Select__c</errorDisplayField> | 
|     <errorMessage>需要撤回申请才能取消</errorMessage> | 
| </ValidationRule> |