function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nandhini S 3Nandhini S 3 

What is the difference between LDS record form and LDS wire adaptors?

When do we go,
-Lightning record forms
-LDS wire adaptors
-apex classes
AnudeepAnudeep (Salesforce Developers) 
Hi Nandhini, 

While both record forms and wire adaptors are built on top of Lightning Data Service (LDS), it is important to know that record forms are used to add a Salesforce record or update fields in an existing record on an object and doesn't require additional Apex controllers to create or update record data while wire adaptors can invoke apex controllers. Also, record forms take care of field-level security and sharing for you, so users see only the data they have access to

https://developer.salesforce.com/docs/component-library/bundle/lightning-record-edit-form/documentation

https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_ui_api

Thanks, 
Anudeep
Nandhini S 3Nandhini S 3
Hi Anudeep,

Thanks for your reply.
Can you please clarify the below for me.
Both Lightning-record-forms and lightning/uiRecordApi is used for creating/viewing/editing a record. What excatly is the difference.
I'm very new to lightning, please bare with my questions.