I've got this error:
Challenge Not yet complete… here's what's wrong:
The campingList component doesn't appear to have a Quantity input field in the form using a Lightning Base component.
While trying to complete this trailhead.
My form looks like this:
<form class="slsd-form--stacked">
<lightning:input aura:id="campingform" label="Item Name"
name="itemname"
value="{!v.newItem.Name}"
required="true"/>
<lightning:input aura:id="campingform" label="Quantity"
type="number"
name="itemquantity"
value="{!v.newItem.Quantity__c}"
required="true"/>
<lightning:input aura:id="campingform" label="Price"
name="itemprice"
formatter="currency"
value="{!v.newItem.Price__c}"
required="true"/>
<lightning:button label="Add Item"
class="slsd-m-top--medium"
variant="brand"
onclick="{!c.addCampingItem}"/>
</form>
Any idea what's wrong there?
Best Answer
Try this one, I hope it will solve your problem