+ Start a Discussion
Subbu KaruppiahSubbu Karuppiah 

Lightning Component Framework Specialist - Issue with Step 7

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

 
Aman MalikAman Malik
Hi,

Try to add type attribute to lightning:input tag.

Thanks,
Subbu KaruppiahSubbu Karuppiah
Aman,

Tried this but still didn't work. 
 
<div class="slds-form-element">
                <lightning:input type="text" label="Title" name="reviewTitle" value="{!v.boatReview.Name}" />
            </div>

Thanks,
Subbu
Nishant Kumar 148Nishant Kumar 148
Hey ,

Change the input field name from "reviewTitle" to "Title"

Thanks
Nish