yangjieke
2022-03-22 3d655e80eec6c770dce06f3d9cf04fffe607f644
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>monday</fullName>
    <active>true</active>
    <description>月曜日だけ</description>
    <errorConditionFormula>CASE(MOD(  Week__c  - DATE(1900, 1, 7), 7),
1, 0,
1) = 1</errorConditionFormula>
    <errorDisplayField>Week__c</errorDisplayField>
    <errorMessage>月曜日だけで選択してください</errorMessage>
</ValidationRule>