<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Required_Hospital_Department</fullName>
|
<active>true</active>
|
<errorConditionFormula>(
|
/* NTC/TTC */
|
RecordTypeId = '01210000000Qeko'
|
/* OPD・跟台 */ ||
|
RecordTypeId = '01210000000Qekj'
|
/* 製品説明 */ ||
|
RecordTypeId = '01210000000QfoD'
|
)
|
&& Text(Status__c) = '申請中' && Isblank(Hospital_Department__c)</errorConditionFormula>
|
<errorDisplayField>Hospital_Department__c</errorDisplayField>
|
<errorMessage>科室必填</errorMessage>
|
</ValidationRule>
|