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 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 6 years, 11 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

    Popular Salesforce Blogs

    apex trigger in salesforce

    Apex Trigger In Salesforce - The Developer Guide

    Blog in Salesforce Apex

    Apex Trigger in Salesforce A trigger is an Apex script which executes before or after DML events occur. Apex triggers enable you to work on…

    Apex Script, Apex Triggers, Database, DML, DML events
    Aditya Mar 26, 2020
    6,987  Views

    CRM for FinTech: Why Choose Salesforce For Fintech Companies?

    Blog in Salesforce Implementation

    Recently German specialists of information technologies published the article “What determines FinTech success?—A taxonomy-based analysis of FinTech success factors”. They provided insights into the potential determinants…

    Attractive to Investors, Business Applications, Business Model Archetypes, Business Process, Code
    Sparkybit Aug 22, 2023
    1,709  Views

    Salesforce vs ServiceNow: Finding the Perfect Fit

    Blog in Salesforce

    In today’s fast-paced business environment, choosing the right software solution for your organization’s needs is critical. Two of the leaders in streamlining workflows and improving…

    Automated Processes, Bottom Line, Business Goals, Cloud-based Platform, Commerce Cloud
    Kizzy Consulting Jul 11, 2023
    1,925  Views

    Popular Salesforce Videos

    Access Salesforce Maps Schedule and Manage Saved Events

    Access Salesforce Maps Schedule and Manage Saved Events

    Video in Salesforce Training

    Watch this video to learn how to Access Salesforce Maps Schedule and Review and Manage Saved Events. Do let us know in the comment section…

    Salesforce Training, Salesforce Tutorial, Salesforce Video, Salesforce Learning, Salesforce Maps
    Abhishek Aug 24, 2021
    2,015  Views
    Salesforce Visualforce and Force.com Development Tutorial || Beginner

    Salesforce Visualforce and Force.com Development Tutorial || Beginner

    Video in Visualforce

    Learn to set up a web page using force.com and create forms for users to input information into Salesforce. For more Salesforce tips and tricks…

    Salesforce Visualforce Page, Force.com, Salesforce Forms, Visualforce Forms, Force.com Tutorial
    Shiv Kumar Sharma Jan 30, 2018
    5,236  Views
    Revenue Sharing with Salesforce | Unlocking Profit Potential | Live Stream Highlights

    Revenue Sharing with Salesforce | Unlocking Profit Potential | Live Stream Highlights

    Video in Others

    This extract from our live webinar uncovered how this powerful platform can revolutionize your revenue generation and maximize your profits. Discover the untapped potential of…

    Salesforce Training, Salesforce Developer, salesforce, Salesforce Hulk, Salesforce Webinar
    Cyntexa Aug 31, 2023
    1,372  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.