Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shez1983's avatar
Level 23

livewire 3 - form sent to backend while being filled?

not sure what I am doing wrong, i have a standard form

<form wire:submit="create">
    @csrf

    <textarea value="" wire:model="form.key_features" placeholder="features, one per line"></textarea><br/><br/>
    <textarea value="" wire:model="form.description" placeholder="description"></textarea><br/><br/>

and when i am filling in the form, it seems doing the create() function which hits the db to save the form? and because the form isnt filled fully yet, i keep getting DB mysql error saying x field is required.. i am not sure why? it happens when i try to fill a form field, without even going to next field (ie blur event)

0 likes
0 replies

Please or to participate in this conversation.