Skip to content

Commit 225b05a

Browse files
committed
Docs on checkboxes
see inertiajs/inertiajs.com#453
1 parent 41d4c5b commit 225b05a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/forms.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ You can pass a `transform` prop to modify the form data before submission. This
153153

154154
:::
155155

156+
### Checkbox inputs
157+
158+
When working with checkboxes, you may want to add an explicit `value` attribute such as `value="1"`. Without a value attribute, checked checkboxes will submit as `"on"`, which some server-side validation rules may not recognize as a proper boolean value.
159+
156160
### Slot props
157161

158162
The `<Form>` component exposes reactive state and helper methods through its default slot, giving you access to form processing state, errors, and utility functions.

0 commit comments

Comments
 (0)