You need to sign in to do that
Don't have an account?
Subbu Karuppiah
Lightning Component Framework Specialist - Issue with Step 7
I am getting the following error in step 7.
Here is the corresponding code:
Regards,
Subbu
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
Try to add type attribute to lightning:input tag.
Thanks,
Tried this but still didn't work.
Thanks,
Subbu
Change the input field name from "reviewTitle" to "Title"
Thanks
Nish