function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
b.gonzalezb.gonzalez 

Validation Rule- REGEX...help!

I am trying to create a validation rule for "Call Results' field on the task page layout. The acceptable entries for the text  field are:

  • Busy
  • Left Voicemail
  • Left Live Message
  • Wrong Number
  • No Answer
  • Contact
  • Correct Contact
  • Set Callback
  • Transfer

How do I write the validation rule to include all listed above? Here is the formula I have so far:

 

OR ( 
(NOT(REGEX("Not Left Voicemail", CallDisposition ))), 
(NOT(REGEX("Left Voicemail", CallDisposition ))) 
)

 

Thanks. 

Best Answer chosen by Admin (Salesforce Developers)