Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Marketplace
    • Advertise With Us
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to set default value in <lightning:select> in Salesforce?

    Tagged: Account ID, Aura Attribute, Controller, Lightning Account Controller, Salesforce Lightning

    • Salesforce® Discussions

      How to set default value in <lightning:select> in Salesforce?

      Posted by Yogesh on December 10, 2019 at 7:20 AM

      I have to set default value in <lightning:select>.

      Deepak replied 6 years, 3 months ago 2 Members · 1 Reply
      • Account ID
      • Aura Attribute
      • Controller
      • Lightning Account Controller
      • Salesforce Lightning
    • 1 Reply
    • Deepak

      Member
      December 10, 2019 at 2:07 PM

      <aura:application extends="force:slds" controller="LightningAccountController">
      <aura:attribute name="accounts" type="Account[]" />
      <aura:handler name="init" value="{!this}" action="{!c.doInit}" />

      <lightning:select label="Choose 1" name="a_opt" aura:id="a_opt" onchange="{!c.change}">
      <aura:iteration items="{!v.accounts}" var="account">
      <option value="{!account.Id}">{!account.Name}</option>
      </aura:iteration>
      </lightning:select>
      </aura:application>

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    application solution

    Popular Salesforce Blogs

    How Salesforce Can Benefit Real Estate Business?

    Blog in Salesforce Implementation

    As a real estate agent, your primary goal is to close deals quickly while providing outstanding customer service. However, with a never-ending stream of leads…

    Automation Rules, automation tools, Best Practices, Bottlenecks, Business Performance
    Kizzy Consulting Jun 28, 2023
    1,677  Views
    How Salesforce CRM Can Help Your Business How Salesforce CRM Can Help Your Business Grow During Recession? During Recession?

    How Salesforce CRM Can Help Your Business Grow During Recession?

    Blog in Salesforce

    CRMs like Salesforce account for one of the most versatile cloud CRM platforms that offer multiple products for pushing business growth to new limits. By helping…

    Customer Behavior, Customer Community, Customer Data, Customer Demands, Customer Engagement
    Carol Apr 11, 2023
    1,630  Views
    Essential features of Salesforce Marketing Cloud

    What Are the Three Essential Features of Salesforce Marketing Cloud?

    Blog in Salesforce

    Salesforce Marketing Cloud is the automation platform that receives the highest praise and boasts the greatest number of features of any product of its kind.…

    Cloud Venture, Contact Data, Customer Experience, Customer Experiences, Customer Journeys
    Hennery cavil Jan 30, 2023
    1,960  Views

    Popular Salesforce Videos

    How to Become a Certified Salesforce Admin

    How to Become a Certified Salesforce Admin

    Video in Salesforce Certifications

    It is predicted there will be 1.9m new Salesforce job openings by 2020. Consultants thinking of a career in IT should consider training in cloud…

    Salesforce Certifications, Salesforce Reports, Salesforce Jobs, Salesforce Administrator, Salesforce Data Management
    Abhay Jan 11, 2018
    1,836  Views
    What are Salesforce Developer Edition?

    What are Salesforce Developer Edition?

    Video in Salesforce Development

    Salesforce Developer Account is actually a free of cost account. If you wanted to explore and if you wanted to do the configuration practices or…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Developer, salesforce
    CRS Jan 31, 2022
    1,983  Views
    Dreamforce 2019 - An Overview!

    Dreamforce 2019 - An Overview!

    Video in Others

    Salesforce Dreamforce2019 is scheduled for November 19-22 in San Francisco, California at the Moscone Center. #Dreamforce is one of the largest cloud and SaaS-centric conferences…

    Dreamforce Event, Salesforce Events, Dreamforce 2019, Salesforce Enthusiast, DF 19
    Algoworks Nov 14, 2019
    2,306  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.