+ Start a Discussion

How to create a custom component to fill the details in the form based on another object?

Hi All,

I am new to salesforce and I want to create a component based on claim request object which will fill the fields in cliam request form based on an obejct name global entitlement and I want to fill the fields based on the employee name and department name which are also in the claim request page.

Shubham NandwanaShubham Nandwana
Hi Akash,
You can create a simple form in lightning and use apex controller to set initials values in it then update those values using the apex class method.
Adding a link for your reference. https://trailhead.salesforce.com/en/modules/lex_dev_lc_basics/units/lex_dev_lc_basics_forms.
This link gives step by step instructions to create what you need and moreover it provides an easy task at the end.
Please mark it as solved and best answer if it helps.
Shubham Nandwana.
AppPerfect Corp.
Salesforce Development & Operations Experts