I have a picklist field that has selections of monthly, quarterly, semi-annual, annual, and custom. The number field will automatically pull 30, 90, 180, 365 based on those selections except custom. I would like this field to stay grayed out unless the selection of "custom" is chosen. Please let me know some possibilities in order to achieve this. Appreciate it.
Thanks,
Mike
2 answers
OR(
TEXT(MonthField) = 'monthly' && NumberField <> 30,
TEXT(MonthField) = 'quarterly' && NumberField <> 90,
TEXT(MonthField) = 'semi-annual' && NumberField <> 180,
TEXT(MonthField) = 'annual' && NumberField <> 365
)
If you use this validation rule, an error should show up if number field is changed when month field is anything other than custom.