0

I have built an app with a geolocation feature. To easily filter the data I have used search term. But I have to add a search filter where user can easily select from the drop-down list or checkbox column? Please help if anyone is familiar with such kind of thing.

This is my account search code. I have also created controller and helper for this.

<aura:component controller="AccountsSearchControl">
    <aura:registerEvent name="accountLoad" type="c:AccountLoad"/>
    <aura:handler name="init" value="{!this}" action="{!c.onInit}"/>
    <aura:attribute name="searchTerm" type="String" default="Toronto"/>
    <lightning:card title="Account Search" iconName="standard:search">
        <div class="slds-form slds-p-around_x-small">
            <lightning:input
                label="Search"
                variant="label-hidden"
                value="{!v.searchTerm}"
                CheckboxColumn="City, Owner's Name"
                placeholder="Search by name, phone, website, or address"
                onchange="{!c.onSearchTermChange}"/>
        </div>
    </lightning:card>
</aura:component>

Right now my page looks like thisenter image description here

In the account search, instead of a search term I want add filter option where user can filter with respect to city, owner's name or record type.

  • 1
    Hi Kashmira, welcome to SFSE. I think we will need a lot more detail and some code here. You've tagged your question salesforce1-app; are you working on mobile? Please see How to Ask and make an edit to flesh out your question. – David Reed May 31 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.