Activity Forums Salesforce® Discussions List out different methods of Dynamic PickList class in Salesforce?

  • Nikita

    Member
    August 26, 2019 at 1:08 pm

    Hi Laveena,

    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().

    Thanks,

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos