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

Restricted Picklist

I'd like to have a picklist field that does not allow a user to enter text not in the picklist options.  Can this be done?  If  I came across the restrictedPickList attribute in the API docs, but no info on how to set this.



Are you trying to modify standard picklist fields (like the Subject field on the Task object) or create a new custom field?  If you create a custom field, you will not be able to enter a value unless it is in the picklist - at least through the user interface.  However, the API will be able to add values that do not exist regardless of this limitation on the front-end.