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
Sunil SSunil S 

Scenario to hide the section based on picklist value(not record type)...

I have a scenario like, I have a custom object named "XXX__c" and I have a picklist with values- 1.opened 2.in progress
-> I have created a record(record1) selecting "opened" value in picklist.
-> when I open the record1, it should display "Open Activities" section since the picklist value is "opened"
-> when i change the picklist value to "in progress" then it should hide the "Open Activities" section.

How can I do this?
Best Answer chosen by Sunil S
Chandra Sekhar CH N VChandra Sekhar CH N V
You need to create workflow rule ( 2 rules in this case) and a field update to flip the record types. Create different record types, one having open activities section and the other which does not have it. Update these record types in field update where your entry criteria will be either opened/ closed respectively.