How to Create a Dynamic Record Page using FieldSet Through LWC?
Generally, for developing a Lightning page for creating records in a Salesforce object, we create different components for creating different sorts of records. With FieldSet, we can actually create dynamic pages in place of creating multiple components for different object records.
FieldSet is nothing but the grouping of fields that enables you to use the fieldset to display the group of fields in your page/component development. Earlier, It was available in classic but now it is available in Lightning as part of the Salesforce Winter ‘19 release.
So, in this blog today, we will share how you can create a dynamic record page using FieldSet through LWC.
Dynamic Record Page Creation using FieldSet Through LWC component
Step 1:- Create a Fieldset on any of the Objects. Here we are creating a Fieldset of Contact Object. Click on ‘Next’.
Step 2:- Choose those fields you want to display on the Dynamic record page.
Step 3:- Develop the LWC component
Code
Step 4:- Now, go to the ‘Home’ tab, and click on Edit Page.
Step 5:- Choose the LWC component and put it on the page, enter the object name, and also enter the FieldSet API name.
Step 6:- Component is ready
Conclusion
We hope this article helps you in creating dynamic pages utilizing FieldSet. Share your thoughts with us if you try this solution. Also, if you need assistance in implementing this solution or any Salesforce development needs, please feel free to talk to our skilled developers at HIC Global Solutions. We would be happy to help! Stay connected for our upcoming technical blogs. Till then, happy learning!