I've added a custom checkbox field to the Case object (I called it Send_to_WebService__c). My problem however, is I need to include a few validation rules for this new checkbox:
- If the checkbox has already been checked, it can never again be unchecked.
- When marking this box as checked, an additional field (lets call it, SampleField_Case_Id__c), cannot be blank or null.
I can get the first criteria working correctly by entering the following error condition formula, but I'm not sure how to expand upon this formula to include the 2nd criteria:
AND(PRIORVALUE(Send_to_WebService__c), TRUE, ISCHANGED(Send_to_WebService__c))
The above basically says, if when hitting "Save", if the checkbox has already been checked, throw an error saying they can't uncheck it. I've tried expanding on this though, to include the 2nd criteria of ensuring SampleField_Case_Id__c isn't null or blank, but I keep getting syntax errors.
How can I expand upon that formula to include this 2nd criteria validation?