directus / directus/docs

Value for radio not sent in hook/flow payload

Open
#449 6 comments 0 reactions 0 assignees View on GitHub
content-improvement
Dominant language
TypeScript
Stars
22
Forks
82
Avg merge
18h 49m
Merged PRs (30d)
4

Description

### Describe the Bug

When creating a new item, if a Radio button's value is left unchanged (set to default), the payload in the Flow hook does not contain the field at all!

Related issue: https://github.com/directus/directus/issues/24660

### To Reproduce

1. Set a default value on a Radio field in a collection
2. Create a Directus Flow, for `action items.create` for the particular collection
3. Create new Item for that collection. Do not change the Radio field's value at all.
4. The Flow payload does not consist of the Radio field at all

The expectation is: a 'configuration' (default value being set for a field) done entirely within Directus should get implemented properly (properly = work first-class throughout Directus), without having to take into account how the DB deals with it (because that's sort of the whole point of Directus) [as indicated in responses to other similar issues]

### Directus Version

v11.11.0

### Hosting Strategy

Self-Hosted (Docker Image)

### Database

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.