We are currently Experimenting with customizations in Salesforce and are trying to achieve the following:
We have added several custom fields to the Account object and want these and other fields to be displayed (and edited) in a different tab. I know it is possible to create different layouts for an object, but have not been able to figure out how to assign these different layouts on different tabs. I can only assign a layout to a profile.
If it has to be done with code, would it be possible to render a layout with a lightning component?
Best Answer
A straight answer would be - you cannot do this,
But there are workarounds, even with a customization solution.
This is a new solution but it works great:
Go to your object's setup page
Go to the
Buttons, Links, and Actions
sectionClick
New Action
on 'Action Type' select
Update a Record
enter all other data as you want and click
save
:click
save
- now you have created the layout of the update action.You can now select
Predefined Field Values
as you like...now you need to add this layout to your app builder:
Go back to your object setup page and open and edit your
Lightning Record Page
Add a tab
Add to your tab the
Related Record
standard lightning componententer header
in the 'Lookup field' enter
Use this Object
In the 'Update Action' select the layout you have created:
That's it
Enjoy!!!