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 display dynamically added picklist value as a picklist value and as picklist field for that parent object in Salesforce?

    Tagged: Account Object, Parent Object, Picklist Field, Picklist Values, SOQL

    • Salesforce® Discussions

      How to display dynamically added picklist value as a picklist value and as picklist field for that parent object in Salesforce?

      Posted by Prachi on December 10, 2019 at 6:45 PM

      I have picklist field industry in account If I added new picklist value 'ABC' to that industry that 'ABC' should be displayed as value in industry field and as a picklist field in account object.

      Yogesh replied 5 years, 12 months ago 2 Members · 1 Reply
      • Account Object
      • Parent Object
      • Picklist Field
      • Picklist Values
      • SOQL
    • 1 Reply
    • Yogesh

      Member
      December 11, 2019 at 10:29 AM

      Hello,

      I m assuming your controller property to get the options looks something like one of the following

      If you are taking the values directly from a specific picklist field

      public List<SelectOption> getMyOptions() {

      List<SelectOption> options = new List<SelectOption>();
      Schema.DescribeFieldResult field = yuopurObject.YourField.getDescribe();

      for (Schema.PicklistEntry f : field.getPicklistValues()){
      options.add(new SelectOption(f.getLabel(), f.getLabel()));
      }
      return options;
      }
      Or if you are manually adding the options, then something like this

      public List<SelectOption> getMyOptions() {

      List<SelectOption> options = new List<SelectOption>();
      options.add(new SelectOption('Option1','Option1'));
      options.add(new SelectOption('Option2','Option2'));
      options.add(new SelectOption('Option3','Option3'));
      return options;
      }
      If you want to adjust the options according to profile then you could simply do something like this

      public List<SelectOption> getMyOptions() {

      List<SelectOption> options = new List<SelectOption>();

      //Might want to look into storing in a custom setting to avoid SOQL call
      Profile p = [Select Id, Name From Profile Where Name = 'Your Profile Name'];
      if(System.Userinfo.getProfileId() = p.Id){
      //add your values here
      }else{
      //add alternate values here
      }

      return options;
      }

    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

    Calling from Salesforce

    Calling from Salesforce: Use RingCentral

    Blog in Lightning

    Hello Everyone, Salesforce is nowadays a huge platform for all the developers, administrators, and users as well. So in this tech world, everyone needs a…

    Calling from Salesforce, Cloud Computing, Cloud Computing Salesforce, productivity, Salesforce AppExchange
    PRANAV Mar 26, 2018
    3,671  Views

    Salesforce Classic vs. Lightning: A Glance at Comparison

    Blog in Lightning, Salesforce

    Salesforce Classic and Salesforce Lightning are two versions of the Salesforce CRM. If you are not aware, Salesforce provides CRM (customer relationship) entities with tools…

    app development, Classic to Lighting, Classic Version, CODING, Components
    fission Nov 4, 2020
    5,536  Views
    Profile Progress Bar

    Enhancing Salesforce Community Engagement with Profile Progress Bar

    Blog in Salesforce

    We hear a lot about personalizing user experience in online communities. Many community managers try different methods to achieve it but do they all succeed?…

    Business, Cmmunity Managers, Community Experience, Community Managers, Community Users
    Niti Goyal Feb 24, 2021
    3,243  Views

    Popular Salesforce Videos

    What is Salesforce

    What is Salesforce

    Video in Salesforce1

    Discover Salesforce, the world’s leading CRM platform! Learn how it helps businesses manage customer relationships, automate workflows, and grow. We’ll explore its ecosystem—Sales Cloud, Service…

    salesforce, #LearnSalesforce, #salesforceimplementation, #crmsolutions
    Elastik Sep 5, 2025
    40  Views
    Get Started with Salesforce Elevate

    Get Started with Salesforce Elevate

    Video in Salesforce Stories

    Salesforce is a powerful tool to analyze your past fundraising, and monitor your ongoing efforts. In this webinar, we'll start with the fundamentals -- understanding…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Webinar, Salesforce Video
    Prafull Feb 4, 2022
    2,184  Views
    How to Find Job as a Fresher in Salesforce - Tips and Tricks

    How to Find Job as a Fresher in Salesforce - Tips and Tricks

    Video in Salesforce Stories, Salesforce Training

    In this video Rohit Puri gives a detailed explanation of the questions that everyone has regarding Salesforce jobs, how to find jobs in Salesforce on…

    Salesforce Training, Salesforce Tutorial, Salesforce Jobs, salesforce, Fresher in Salesforce
    Rahul kapoor Aug 19, 2022
    2,465  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

    © 2025 - 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.