You need to sign in to do that
Don't have an account?

Is this an error on Developer Guide?
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.data_edit_record
SECTION:
Edit a Record with a Custom Layout Using lightning-record-edit-form
Is it missing a </lightning-record-edit-form>?
Also, should the second div class be 2-of-2?
Thanks for helping a budding developer.
SECTION:
Edit a Record with a Custom Layout Using lightning-record-edit-form
Is it missing a </lightning-record-edit-form>?
Also, should the second div class be 2-of-2?
Thanks for helping a budding developer.
Hi Claire,
Greetings to you!
Awesome! You are right, </lightning-record-edit-form> is missing. I will try to share your feedback with the respective team.
But, class="slds-col slds-size_1-of-2" is correct for the second div.
slds-size_1-of-2 -> This equates to a width of 50%. This will make each field take up 50% of the containing section.
Refer this link for more information: https://www.lightningdesignsystem.com/utilities/sizing/
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas