+ Start a Discussion
PrakkiPrakki 

Restricting user to not to enter pick list values as per check box ( checked/ un checked)

Dear All,

 

We had created a custom check box in the user object, as per the check box value ( checked/ Un checked),   

i would like to restrict the user to not to enter values in the pick list fields.

 

If the pick list value is checked then user can enter values to the pick list fields. If it is unchecked, then i should restrict him.

 

Any one can help me in this scenario.

 

Promt responses will highly appriciated.

 

Thank you

 

Regards,

Prakki 

Devendra@SFDCDevendra@SFDC

Hi,

 

You can write a validation rule on User object as below,

 

AND(checkboxfield__c = TRUE,NOT(ISPICKVAL(PickList_Fieldname__c, "")))

 

Hope this helps :)

PrakkiPrakki
Hi Devndra,

Thx for the answer, let me explain u clearly regarding the scenario.

Actually the check box field is in user object as per the value of the check box, i should give crud permission.

In single line, if the check box value is true, selected fields should changed to read only.

Thank you.


sushant sussushant sus
we can,t do this by validation rule because through validation rule you can restrict user specfic not able to enter picklist field in work on record level .....

but requirement can be achieve by trigger
you can query user who is login then check checbox is check or not then apply logic in trigger ....
for user object filed refer this

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_userinfo.htm