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
Marina PesciniMarina Pescini 

"contains" applied to a multi picklist field

In a validation rule I have to write 

if my_field contains "xxx"

by my field is a multi picklist field...

can anyone help me?
Veenesh VikramVeenesh Vikram
Hi Marina,

Try the "INCLUDES" function while writing the Validation Rule.

Like: INCLUDES( my_field__c, 'xxx')

Hope this helps!
Kindly marked as solved if it works for you.

Veenesh
Marina PesciniMarina Pescini
half way...!

I have written 

INCLUDES( CLASSI_DI_PRODOTTO_INTERESSE__c, 'Google Apps for Work')

The syntax is correct; it gives me an error if the condition is not matched.... but it gives me an error even if the condition is matched! 

If I de-activate the validation rule I have no problem with the field..