+ Start a Discussion

Hide and show sections of Page Layout-Salesforce Lightning

Hi Experts.. I have the requirement to hide/show sections of the Salesforce Lightning Layout based on the picklist option value which we select.. is there any alternative way without using LWC controls, I am very newbie to the saleforce. your suggestions would be greatly appreciated..

AbhishekAbhishek (Salesforce Developers) 
This is not possible today to do with any standard layout.

You have 3 options:

>>Develop your own layout with VisualForce pages or lightning components (really not recommended, but a viable option).

>>See this idea: Dependent page layouts (https://trailblazer.salesforce.com/ideaView?id=08730000000BroxAAC) and wait until it will be GA.

>>See this article: Dependent Page Layouts – Dynamically Hide/Show Form Fields in Lightning Experience (https://douglascayers.com/2017/06/24/dependent-page-layouts-dynamically-hideshow-form-fields-in-lightning-experience/) and try to use flows in your lightning layouts.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.


Do we have any form events or fields events (OnChange) for the pagelayout, if so, can we use javascript code to handle this kide of requirement. 

Is this requirement not possible by using standard paylayouts? in this case what is the use of pagelayout ?

AbhishekAbhishek (Salesforce Developers) 
No, it's possible by using standard payloads.

I haven't tried the other options but I can say go through the links which I posted above.
Robin JohansonRobin Johanson
This can conceivably make your page formats a ton cleaner, by not demonstrating void related records upsers (https://www.upsers.run/).
entahma buddyentahma buddy
Hey srikanth, dont worry, just try out the tips shared by abhishek brother. I have tried them and working for me to hide and show manually cinema hd (https://paynjmcdirect.com/)
lisa chan 1lisa chan 1
wohh, i totally agree! A useful share https://www.geometrydash.me