+ Start a Discussion
sree sfdcsree sfdc 

if checkbox is checked and associate picklist field is enable ?

hi floks

i have one requirment 

if check box is checked and associate piclkist field is enble .and it's unchecked picklist field was disable .

how to do this requirment ?  
Best Answer chosen by sree sfdc
Dev.AshishDev.Ashish
You can use use dependent picklist feature. Your checkbox will be  controlling field. if checkbox is checked you can display all picklist values, on other hand if checkbox is unchecked dont show any value and it will be forced null value.

https://help.salesforce.com/HTViewHelpDoc?id=fields_about_dependent_fields.htm&language=en_US

All Answers

logontokartiklogontokartik
Hi Sree,

You can write a workflow rule and field update to do this. 

Thank you.
Ajit KumarAjit Kumar

HI Kartik,

I tried to do the same, but couldn't succeed.

when I'm defining a workflow, it is expected to put some criteria on which this workflow should trigger.

So just for the testing purpose, I selected a checkbox of that object and put an equals operator against TRUE.

I'm not very sure whether it will work on not. After that when I'm defining the field update workflow action, I'm not able to disable any field. I can only set it to any perticular value.

Can u please explain how exactly we can do this?

Thanks

Vinit_KumarVinit_Kumar
Is this a standard page or VF page ??

If this is standard page,

Short answer is NO,you can't,there is an existing Idea for the same which you can promote :-

https://success.salesforce.com/ideaView?id=08730000000Brox

However,there are workarounds available like (field dependencies,validation rules and different Pagelyouts based on Record Types).Go through the below link to learn more about it :-

http://pdespati.wordpress.com/2012/09/06/salesforce-dynamic-page-layout/

If this is VF page,you can always use rendered property to display that field based on another field value.

If this helps,please mark it as best answer to help others :)


Dev.AshishDev.Ashish
You can use use dependent picklist feature. Your checkbox will be  controlling field. if checkbox is checked you can display all picklist values, on other hand if checkbox is unchecked dont show any value and it will be forced null value.

https://help.salesforce.com/HTViewHelpDoc?id=fields_about_dependent_fields.htm&language=en_US
This was selected as the best answer