+ Start a Discussion
khaviya G Senthilkumarkhaviya G Senthilkumar 

I have an error "Failed to save Demo.cmp: c:Demo:127,74: Invalid attribute "name": Source"

I am trying to display the fields based on dependent values in picklist. After writing the code, when i try to save it, am getting an error
khaviya G Senthilkumarkhaviya G Senthilkumar
<aura:attribute name="toggleNet" type="boolean" default="true" />
        <aura:attribute name="toggleGross" type="boolean" />
          <div class="slds-align_absolute-center ">
          <lightning:select name="netselect" label="Net or Gross" onchange="{!c.toggle}" >
              <option>Net</option>
              <option>Gross</option>
              <option>Gross+Electric</option>
          </lightning:select>
          </div>
        
     <aura:if isTrue="{!v.toggleNet}">
           <lightning:input aura:id="analysisform" label="Current Year Operating Expenses ($/sf/Yr)"
                             name="currentyearoperatingexpenses"
                             value="{!v.newcurrentyearoperatingexpenses.Name}"/> 
      
           
           
        <aura:set attribute="else">
            
          <aura:if isTrue="{!v.toggleGross}">    
            <lightning:select name="selectgross" label="Expense Stop Type" required="false">
            <option value="">$/sft</option>
            <option value="1">Base Year</option>
            </lightning:select>
            <lightning:input aura:id="analysisform" label="Expense Stop ($/sf/Yr)"
                             name="expensestop"
                             value="{!v.newexpensestop.Name}"
                             required="false"/>
            
            <lightning:input aura:id="analysisform" label="Current Year Operating Expense ($/sf)"
                             name="currentyearoperatingexpensesforgross"
                             value="{!v.newcurrentyearoperatingexpensesforgross.Name}"
                             required="false"/>        
            
            <aura:set attribute="else">                
            <lightning:input aura:id="analysisform" label="Electricity $/sq ft"
                             name="electricity"
                             value="{!v.newelectricity.Name}"
                             required="false"/>
            </aura:set>
          </aura:if>
        </aura:set>
   </aura:if> 



I am getting filed_inetgrity_exception in the first line when i am trying to save