Activity Forums Salesforce® Discussions List out different methods of DynamicPickList class in salesforce.

  • Hariom Chaudhary

    Member
    September 24, 2019 at 2:15 pm

    Hi,

    The following are methods for DynamicPickList.

    clone()
    Makes a duplicate copy of the VisualEditor.DynamicPicklist object.
    getDefaultValue()
    Returns the picklist item that is set as the default value for the picklist.
    getLabel(attributeValue)
    Returns the user-facing label for a specified picklist value.
    getValues()
    Returns the list of picklist item values.
    isValid(attributeValue)
    Returns the valid state of the picklist item’s value. A picklist value is considered valid if it’s a part of any VisualEditor.DataRow in the VisualEditor.DynamicPickListRows returned by getValues().

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos