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
TMangoTMango 

Count and Limit Number of Multi-Select Options

Is there a way to write a validation rule that only allows a specific number of options to be chosen in a multi-select field?  We are using a field on multiple record types, and on one of the record types the requester can choose as many as he/she wants.  On the other, we would like to limit it.  Can this be done?

 

If it helps ... in Lotus Notes the formula was @Elements ...

*werewolf**werewolf*

No, you can't do that with a validation rule, there just aren't the functions available to make it happen.  You'll have to do it with an Apex trigger.