function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cmxintcmxint 

PickList Default value doesn't work

Hi, guys!

I'm trying to get default value for picklist field, but all values in field.picklistValues have their defaultValue flag set to FALSE. I found similar topic, but it's not clear does this feature correct for now.

Any comments and advices are appreciated.

darozdaroz
Just because there is a picklist doesn't mean there has to be a default value. If you edit the picklist via the UI is there an entry in the picklist that does have the default value checkmark next to it?
cmxintcmxint

Hi, daroz!

Yes, sure there is a checkmark of default value for that picklist when I edit it via UI. So that's the question: why API doen't return default flag set to true while it's set to true for one of the values in picklist and I can see it editing that picklist via UI? May be you have answer

DevAngelDevAngel
Bug, fixed in upcoming release though.