• Manohar Biyani
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello 

I am getting the below error while saving my  component can anyone help me 

Failed to save CarsearchForm12.cmp: Unterminated expression: Source
carsearchform.cmp

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
    <aura:attribute name ="buttonLabel"  type="string" default="Search" />
    <aura:attribute name ="NewLabel"  type="string" default="New button" />
    <aura:attribute name ="showNew" type="Boolean" default="false" />
     <aura:attribute name="carTypes" type="String[]" />
    <aura:handler name="init" value="{!this}"  action="{!c.doInit}" />    
                                                              
    <lightning:layout horizontalAlign="center">
    <lightning:layoutItem padding="around-medium">
    <lightning:select name='selectItem' aura:id ="carTypeList" label='All Types'
                      variant="label-hidden" value="" onchange= "{!.c.newValueSelected">
        <option value ="" text="All types" />
<aura:iteration items ="{!v.carTypes}" var="carType">
                        <option value="{!carType}" text="{!carType}" />
                        </aura:iteration>
        </lightning:select>
        </lightning:layoutItem>
        
        <lightning:layoutItem padding="around-medium">
<lightning:button label="{!v.buttonlabel}" onclick="{!.c.onSearchClick}" variant="brand" />            
            <aura:if isTrue="{!v.showNew}">
                <lightning:button variant='neutral' label="{#v.newLabel}"/>
            </aura:if>
                                                                                         
        </lightning:layoutItem>
        </lightning:layout>     
</aura:component>


I have created a custom object