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
jyothsnajyothsna 

Hide and Display Custom buttons based on the condition

Hi All,

I have requirement like this
 I have one picklist field on the parent object,
 Based on the picklist value i have to display various custom buttons on the related list of child object
 Please help me

Thanks in advance
pconpcon
I think in order to do that you would need write that in VisualForce page or component and control the display via the controller.
Jason Reiber [ACS]Jason Reiber [ACS]
The only way I know of dynamically control the layouts based on a per record configuration is to use Record Types, or as pcon suggested you could create a VisualForce page.  I'm not sure of the specifics of what you're doing though so I can't say whether Record Types will fit your needs.
jyothsnajyothsna
Thank you Mr.Pcon and Mr.Jason Reiber 
I created vf page to display buttons dynamically.