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, 1 month 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

    What is CPQ & How do Configure-Price-Quote Salesforce Solutions Bring in Revenue?

    Blog in Others

    Creating sales is not a simple task. Building interest in a product demands additional attention, especially when crafting compelling product quotes. This often becomes a…

    Bulk Discounts, Complex Products, Configure Price Quote, Configure Pricebook, Configure Products
    Sculptor CPQ Apr 15, 2024
    842  Views

    Sneak Peek: Latest Features And Updates of Salesforce commerce Cloud

    Blog in Salesforce Products

    With rising customer expectations in a tech-savvy marketplace, it has become critical for retailers to deliver top-shelf shopping experiences to stay relevant and competitive in…

    Commerce API Explorer, Commerce Cloud, Commerce Cloud Storefront, Einstein Bots, Einstein Recommendation Engine
    LevelShift (formerly DemandBlue) May 2, 2019
    2,868  Views

    How Hiring a Salesforce Implementation Partner Could Benefit the Healthcare Sector

    Blog in Salesforce Implementation

    Digitalization of healthcare is a complex task due to the sector's unique challenges, such as handling various types of data and interdependent roles. Salesforce implementation…

    Application, Applications, Automation, Benefit, Care
    Concretio May 22, 2023
    1,621  Views

    Popular Salesforce Videos

    Update Record Using Salesforce Flow | Flow Builder Series Salesforce

    Update Record Using Salesforce Flow | Flow Builder Series Salesforce

    Video in Salesforce Training

    In this video, we will learn how to use Update Records in Salesforce Flow. Here is the timestamp for your help. ----------------- Update Records in…

    Salesforce Training, Salesforce Tutorial, Salesforce Integration, salesforce, Salesforce Flow
    Prafull Oct 29, 2021
    1,464  Views
    Email to case in Salesforce | Learn Salesforce

    Email to case in Salesforce | Learn Salesforce

    Video in Salesforce Training

    In this video, Shrey explained complete Record Level Security in Salesforce which includes: 1. What is Email-to-case in Salesforce? 2. Where can Email-to-case be used?…

    Salesforce Training, Salesforce Implementation, salesforce, Learn Salesforce, Salesforce Video
    Jogender Apr 7, 2021
    2,218  Views
    Process Builder - A Tool every Salesforce Developer must know

    Process Builder - A Tool every Salesforce Developer must know

    Video in Trailhead

     Salesforce Process Builder - A Tool every Salesforce developer must know. Learn how to master Process builder Salesforce to automate your business processes. In this…

    Salesforce Admin Training, Salesforce Developer, Free Salesforce Training, Easy Way To Learn Salesforce, Salesforce Lightning Process Builder
    Abhay Nov 30, 2018
    2,596  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.