PS.ProjectContext.customFields property (ps.js)
Gets the collection of enterprise custom field definitions in the Project Web App instance.
Applies to: Project Professional 2013 | Project Server 2013
var value = PS.ProjectContext.get_customFields()
Return value
PS.CustomFieldCollection
A collection of CustomField objects.
Remarks
Values for custom fields can be set on many entity types, including projects, tasks, resources, and assignments. A project can also include definitions for local custom fields that are specific to each project.