I have the following requirement:
I need 2 layouts, one when a user clicks on the standard New button on the Lead list page. Here the users sees all the fields and fills the neceeasary fields and saves. (Irrespective of user profile).
the second: when you go in to the detail page of the lead, again irrespective of user profile, I want to see a page which only shows some fields. Basically, the page is in split in to 2 parts, one with fields mandatory to display and other with optional fields which depending on user role can be hidden or shown.
I know that I can remove the fields in page layout, but when the user tries to create a record, he needs to see all the fields. For optional section, I made a lightning component and in the backend I decide who sees and who doesnt based on the current user role.
Now, for the mandatory section is creating another lightning component or creating a list button with custom visualforce page my only 2 options?