milkslices
Programmatically change the values of a single Livewire component form action
Context
I'm working from a custom Livewire component.
What I'm looking for
My users can create 1 or more clickable text elements on the page.
When they click one, the form should show with one of the fields set to the value of the element they clicked.
Initial progress
I have a form action that templates the fields needed with initial defaults. I can mount this in my click event and have reference to what was clicked.
Current problem
I'm not sure how to programmatically change the value of certain form fields, and have this shown the next time the action is mounted?
Example
5 replies