You need to sign in to do that
Don't have an account?
Spencer Berk
RecordViewForm Component for Community
I am trying to create a recordViewForm component in my Salesforce Community that displays specific fields (read only) from the loggedin user's Account record. I am not a developer so any help would be greatly appreciated.
This is the error I receive when clicking on the community page with this component, in the Community Building:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > <lightning:recordViewForm recordId="{!v.recordId}" objectApiName="Account"> <div class="slds-grid"> <div class="slds-col slds-size_1-of-2"> <lightning:outputField fields="Agreement_Date__c"/> </div> <div class="slds-col slds-size_1-of-2"> <lightning:outputField fields="Renewal_Date__c"/> </div> </div> </lightning:recordViewForm> </aura:component>
This is the error I receive when clicking on the community page with this component, in the Community Building:
<lightning:outputField fields="Agreement_Date__c"/>
Please change the Fields to Fieldname
<lightning:outputField fieldName="Agreement_Date__c"/>
Thanks,
Srinivas.