function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<lightning-record-edit-form record-id={recordId} object-api-name="Contact" onsuccess={handleSuccess} onsubmit ={handleSubmit}> <lightning-messages> </lightning-messages> <lightning-output-field field-name="AccountId"> </lightning-output-field> <lightning-input-field field-name="FirstName"> </lightning-input-field> <lightning-input-field field-name="LastName"> </lightning-input-field> <lightning-input-field field-name="Email"> </lightning-input-field> <lightning-button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update"> </lightning-button> </lightning-record-edit-form> ###################################################################### @api recordId; handleSubmit(event) { console.log('onsubmit event recordEditForm'+ event.detail.fields); } handleSuccess(event) { console.log('onsuccess event recordEditForm', event.detail.id); }
Refer the below link will help you to proceed further.
https://www.sfdcpoint.com/salesforce/lightning-record-edit-form-lwc/
Thanks!!
Try Below Code Please Mark It As Best Asnwer If It Helps
Thank You!