• Nishant Kumar 148
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I am getting the following error in step 7. 
User-added image

Here is the corresponding code:
    <aura:attribute name="boat" type="Boat__c" />
    <aura:attribute name="boatReview" type="BoatReview__c" access="private"/>
    <aura:attribute name="boatReviewRecord" type="BoatReview__c" />
    <aura:attribute name="recordError" type="String" access="private"/>

<force:recordData aura:id="service"
                      fields="Id,Name,Comment__c,Boat__c"
                      targetRecord="{!v.boatReviewRecord}"
                      targetFields="{!v.boatReview}"
                      targetError="{!v.recordError}"
                      recordUpdated="{!c.onRecordUpdated}"
                      />
        
    <div class="slds-p-around_x-small">        
        <div class="slds-form slds-form_stacked">
            <div class="slds-form-element">
                <lightning:input label="Title" name="reviewTitle" value="{!v.boatReview.Name}" />
            </div>
            <div class="slds-form-element">
                <label class="slds-form-element__label" for="input-id-02">Description</label>
                <lightning:inputRichText title="Description" value="{!v.boatReview.Comment__c}" disabledCategories="FORMAT_FONT"/>
            </div>
            <div class="slds-form-element">
                <div class="slds-align_absolute-center">
                    <lightning:button label="Submit" onclick='{!c.onSave}' iconName="utility:save"/>
                </div>
            </div>
        </div>    
    </div>
Can someone point me what I am doing wrong here? 

Regards,
Subbu