> ## Documentation Index
> Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt
> Use this file to discover all available pages before exploring further.
# setDataFieldLabelVisibility
API reference for the setDataFieldLabelVisibility method.
Controls whether data field labels are visible in the editor for the current app session.
When enabled, users can see the purple labels indicating which data field each tagged element
is linked to. The setting resets to hidden once the app session ends.
## Usage: Show data field labels, then hide them again
```typescript
import { setDataFieldLabelVisibility } from "@canva/design";
await setDataFieldLabelVisibility({ visible: true });
// User reviews data field labels in the editor.
await setDataFieldLabelVisibility({ visible: false });
```
## Parameters
The configuration options for this call.
Properties of opts>}>
Whether data field labels should be visible in the editor for the current app session.
## Returns
Response object from a `setDataFieldLabelVisibility` call. This is a `Promise` that resolves with the following object:
The only valid value is `"completed"`.