+ Start a Discussion
communitycommunity 

De-activate picklist value / dependant picklist

I have 2 picklist fields(X and Y) from 2 different objects(One Custom object and the other Standard).

The picklist values for X are a;b;c

The picklist values for Y are 1;2;3

 

Now, if a user selects '1' as the picklist value in Y field, then the 'a' value in X should be deactivated.. i.e., the user should not be able to select 'a' value from X picklist. If the user wants to select 'a' then he can select a different value other than 1 from Y picklist.

 

How do I get this functionality done.. triggers ? or something else ? any idea.

 

 

Ispita_NavatarIspita_Navatar

Well I don't think deactivation can be implemented, as it is equivalent to changing the schema so cannot be achieved via trigger, but what can be done is implementing a validation via trigger so that whenever user select '1' in object Y then on select of 'a' an error is thrown, while when other values are selected no error is raised.


Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.