disable submit button on widget form

can we prevent submit a form if there is a record in the db? the form is a widget and customize by livewire. any idea would be helpful
2 Replies
Dennis Koch
Dennis Koch3mo ago
Use Laravel's exists validation
matin rajabi
matin rajabi3mo ago
thanks but i don't mean the way of check record in database, my question is how and where should i put this condition to disable my widget form?