You need to sign in to do that
Don't have an account?
Lauren B
How to change the output label name in lightning record form in lwc.
Hi,
I have the following code to show the record in lightning record form and I want to change the label of the field. Plese assist.
I have the following code to show the record in lightning record form and I want to change the label of the field. Plese assist.
HTML- <lightning-record-edit-form record-id={mmaid} object-api-name="NJ_MMA2__c" class="custom-font" onsuccess={handleSuccessCOB} columns="2" layout-type="Full" > <lightning-messages> </lightning-messages> <div class="slds-box" style="padding-Bottom: 20px;"> <div class="slds-grid slds-align_absolute-center" style="font-weight: bold"> <template class="slds-col slds-size_1-of-2" for:each={fields_MMA} for:item="section" > <template for:each={section.fields} for:item="fieldFromSection" > <template if:false={COBEdit}> <lightning-output-field alignment-bump="left" class=" left-align" style="text-align: left;" key={fieldFromSection} field-name={fieldFromSection} > </lightning-output-field> </template> <template if:false={COBEdit}> <lightning-output-field alignment-bump="left" class=" left-align" style="text-align: left;" key={fieldFromSection} field-name={fieldFromSection} > </lightning-output-field> </template> </template> </template> </div> </div> </lightning-record-edit-form> JS- fields_MMA = [ { label: "MMA", fields: [ " MMA_First_Name__c", "MMA_Last_Name__c" ] } ];