You need to sign in to do that
Don't have an account?

Adding an event in the Lighting Component Superbadge - Step 4
I am working on the Lightning Component Superbadge and have gotten to step 4, I however, seem to be stuck on the FormSubmit event.
I've written it like this.
But get this message.
Challenge Not yet complete... here's what's wrong: The FormSubmit event isn't configured correctly. There is something missing or improperly configured in the FormSubmit.evt file.
I've written it like this.
<aura:event type="COMPONENT"> <aura:attribute name="formsubmit" type="Boat__c[]"/> </aura:event>
But get this message.
Challenge Not yet complete... here's what's wrong: The FormSubmit event isn't configured correctly. There is something missing or improperly configured in the FormSubmit.evt file.
All Answers
The name and type of the attribute are wrong. You would need to read the description for the event carefully for the naming and the attribute type.
Use a new event c:FormSubmit named formsubmit with an Object attribute named formData to pass the selected boatTypeId—as a property of formData—from BoatSearchForm to its parent component BoatSearch. Do this via a controller function called onFormSubmit() attached to the Search button.
Best regards