• Sean Barker
  • NEWBIE
  • 40 Points
  • Member since 2017

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies
Hi,

I can't work out whats wrong with my trailhead "Sharing Rule" challenge, I have checked the usual areas where people have tripped up before, but can't see any problems.  Hopefully somebody can see the issue.

User-added image

User-added image
Hi there,

I've been trying to complete the above trailhead module, but have hit a brick wall with the following error. 

Challenge Not yet complete... here's what's wrong:
The campingList component doesn't appear to have a Name input field in the form using a Lightning Base component.

Am I creating this error by including the AuraID on the lightning:input field? 

Am I going mad?  the campingList contains the campingform component and there is the following on there; 

<lightning:input aura:id="Name" name="Name" label="Name" value="{!v.item.Name}" />

Apart from not passing the trailhead, the form is functional.

 
Hi there,

I've been trying to complete the above trailhead module, but have hit a brick wall with the following error. 

Challenge Not yet complete... here's what's wrong:
The campingList component doesn't appear to have a Name input field in the form using a Lightning Base component.

Am I creating this error by including the AuraID on the lightning:input field? 

Am I going mad?  the campingList contains the campingform component and there is the following on there; 

<lightning:input aura:id="Name" name="Name" label="Name" value="{!v.item.Name}" />

Apart from not passing the trailhead, the form is functional.

 
Hi,

I can't work out whats wrong with my trailhead "Sharing Rule" challenge, I have checked the usual areas where people have tripped up before, but can't see any problems.  Hopefully somebody can see the issue.

User-added image

User-added image
Hi there,

I've been trying to complete the above trailhead module, but have hit a brick wall with the following error. 

Challenge Not yet complete... here's what's wrong:
The campingList component doesn't appear to have a Name input field in the form using a Lightning Base component.

Am I creating this error by including the AuraID on the lightning:input field? 

Am I going mad?  the campingList contains the campingform component and there is the following on there; 

<lightning:input aura:id="Name" name="Name" label="Name" value="{!v.item.Name}" />

Apart from not passing the trailhead, the form is functional.

 
Re-factored my code from previous units with base lightning components, but receiving this error.  Here's my new form component.  Any help would be much appreciated.

<aura:component >   
    <aura:attribute name="newItem" type="Camping_Item__c"    default="{ 'sobjectType': 'Camping_Item__c',
                         'Name': '',
                         'Price__c': 0,
                         'Quantity__c': 0,                         
                         'Packed__c': false
                       }"/>
 
    <aura:registerEvent name="addItem" type="c:addItemEvent"/>
    <lightning:layout >
        <lightning:layoutItem padding="around-small" size="6">
<div aria-labelledby="newItemForm">

    <!-- BOXED AREA -->
    <fieldset class="slds-box slds-theme--default slds-container--small">

    <legend id="newItemForm" class="slds-text-heading--small 
      slds-p-vertical--medium">
      Add Camping Item
    </legend>

    <!-- CREATE NEW CAMPING ITEM FORM -->
    <form class="slds-form--stacked">          
        <lightning:input aura:id="itemForm" label="Camping Item Name"
                         name="Name"
                         value="{!v.newItem.Name}"
                         required="true"/> 
        <lightning:input type="number" aura:id="itemForm" label="Quantity"
                         name="Quantity"
                         maxlength="16"
                         min="0"
                         step="1"
                         value="{!v.newItem.Quantity__c}"
                         required="true"/>
        <lightning:input type="number" aura:id="itemForm" label="Price"
                         name="Price"
                         min="0"
                         step=".01"
                         value="{!v.newItem.Price__c}"
                         formatter="currency"
                         messageWhenRangeUnderflow="Enter an amount that's at least .01."/>
        <lightning:input type="checkbox" aura:id="itemForm" label="Packed?"  
                         name="Packed"
                         checked="{!v.newItem.Packed__c}"/>
        <lightning:button label="Create Expense" 
                          class="slds-m-top--medium"
                          variant="brand"
                          onclick="{!c.clickCreateItem}"/>
    </form>
  </fieldset>
  <!-- / BOXED AREA -->

</div>
        </lightning:layoutItem>
    </lightning:layout>
</aura:component>