You need to sign in to do that
Don't have an account?
Stefaan Somers 11
Validation rule on list of values
Hi,
we have a picklist of 100 values. Now we need the following requirement.
- there is a check-box field
- if field is checked only a limit amount of those 100 picklist values should be allowed
- it should be possible to configure these limited picklist values, without hardcoding this somewhere
In custom settings or custom meta-data you can only define 1 value
we have a picklist of 100 values. Now we need the following requirement.
- there is a check-box field
- if field is checked only a limit amount of those 100 picklist values should be allowed
- it should be possible to configure these limited picklist values, without hardcoding this somewhere
In custom settings or custom meta-data you can only define 1 value
https://help.salesforce.com/articleView?id=custommetadatatypes_validation_rules.htm&type=5
please try below code:
Vf Page :
Controller :
Please mark as best answer if it helps you.
Thank You
Ajay Dubedi