Toggle Side Panel

  • Blogs
  • 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
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • 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
    • 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, 10 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

    Popular Salesforce Blogs

    Salesforce Integration Mistakes

    Salesforce Integration Mistakes to Avoid for Better Outcomes

    Blog in Salesforce integration

    Companies today rely on multiple work apps to manage diverse business functions. Right from HR, Finance, to Marketing & Sales, teams make use of various…

    Apps, Automated Tools, Bad data, bi, Business Data
    Carol Aug 30, 2022
    2,651  Views
    Scan Business cards to Outlook in seconds

    Scan Business cards to Outlook in seconds

    Blog in Salesforce integration

    Ever juggled with the misery of collecting business cards & typing them into your Outlook account?  Look no further, with Bric APP business card scanner you can scan…

    Business Card App, Business Card Reader, Business Card Reader to Outlook, Business Card Scanner, Business Card Scanner to Outlook
    Iatsham Sep 6, 2017
    5,973  Views
    Marketing Issues of Small Business

    How Does Salesforce Marketing Cloud Solve the Marketing Issues of Small Businesses?

    Blog in Salesforce Cloud Platform

    With time customer demands are growing, and it becomes an issue for the marketer to maintain the product's branding. This is particularly true for small-scale…

    Applications, Audience Builder, Certified Salesforce Consulting Company, Channels for Communication, Clients
    Innovadel Oct 28, 2022
    2,572  Views

    Popular Salesforce Videos

    What are Apps in Salesforce?

    What are Apps in Salesforce?

    Video in Salesforce Apps

    Apps in Salesforce are Service, Marketing, Content, Salesforce Chatter, Service Console, Salesforce CMS, Test, Sales, Salesforce Scheduler Setup, Community, Sales Console, Lightning Usage App, Bolt…

    Salesforce Training, Salesforce Chatter, Salesforce Online Training, Salesforce Apps, Marketing
    CRS Feb 9, 2022
    2,945  Views
    External File Storage for Salesforce | Learning Guide

    External File Storage for Salesforce | Learning Guide

    Video in Salesforce Stories, Salesforce Training

    We demonstrate how to avoid Salesforce's file storage limit by using external files. Read the article and download the sample file. https://dbservices.com/blog/external-file-storage-for-salesforce

    Salesforce Training, Salesforce Development, Salesforce Implementation, Salesforce Consulting, Salesforce File Storage
    DB Oct 31, 2023
    1,191  Views
    Salesforce Multi-factor Authentication/Two-factor Authentication End User Training Video

    Salesforce Multi-factor Authentication/Two-factor Authentication End User Training Video

    Video in Salesforce Security

    Watch this video to learn all about Salesforce Multi-factor Authentication/Two-factor Authentication. This is a training video. Watch and learn.

    Salesforce Training, Salesforce Tutorial, Salesforce Security, Salesforce Video, Salesforce Learning
    Prafull Dec 28, 2021
    2,728  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®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.