***

title: "UseCustomFieldConfig"
generated: true
---------------

<GenerationInfo sourceFile="packages/dashboard/src/lib/hooks/use-custom-field-config.ts" sourceLine="19" packageName="@vendure/dashboard" since="3.4.0" />

Returns the custom field config for the given entity type (e.g. 'Product').
Also filters out any custom fields that the current active user does not
have permissions to access.

The result keeps the same identity across renders until the server config or
the active user's permissions change, so it can be used as a memo dependency.

```ts title="Signature"
function useCustomFieldConfig(entityType: string): CustomFieldConfig[]
```

Parameters

### entityType

\<MemberInfo kind="parameter" type={`string`} />
