function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kminevkminev 

Hide and show fields when dropdown list is changed

I have a page layout containing fileds from custom object and I need to show or hide certain fields on this page layout based on the selection of the drop down list.
 
Is there a way I can assign a trigger to my drop down list to triggere some code tha will go through my fields and hide them?
 
I would really appreciate if someone gives some insights and pointers on that request.
 
Thank you.
Best Answer chosen by Admin (Salesforce Developers) 
JocsanJocsan
As far as I know that is not currently possible.

There is an idea/request for this funcitonality.

http://ideas.salesforce.com/article/show/37336/Dependent_page_layouts__Dynamically_show_hide_or_make_fieldssections_required_on_a_page_based_on_data_rules

Go ahead and promote it!