TrueSolv — Header Component

Modify Fields Onsubmit In Lightning Record Edit Form

Modify Fields Onsubmit In Lightning Record Edit Form

Problem Sometimes you need to execute code before submitting the form and set or modify some fields on sObject. For example, you have the following lightning-record-edit-form for Account sObject. Solution To modify some fields you can use onsubmit handler. You can get created/updated sObject from the event object. After the modifications, you need to submit the form. I and our TrueSolv team can help you with any questions related to Salesforce custom development. Contact us.

Working with cookies from Lightning

Working with cookies from Lightning

I want to share with you several ready to use JS functions to working with cookies from Lightning, both Aura Component and Web Components. createCookie function gives an ability to create a cookie with a particular name, value, and time to live.

How To Share Code Between Aura And LWC

Aura Lightning Web Component

Now you can build Lightning components using two programming models: Lightning Web Components, and the original model, Aura Components. Most of the projects consist of Aura Components but more and more developers trying to use LWC for new components. Developers faced with the issue to use common functions in Aura and Lightning Web Components. The solution is pretty simple:

TrueSolv — Footer Component