F
Filament5mo ago
yacovR

Url parameter in form filling

Hello guys, is there a way to ass parameter urls in form filling process? #❓┊help
5 Replies
Dennis Koch
Dennis Koch5mo ago
You should provide a bit more information. Form filling is just $this->form->fill([]). If you want to pass an url that would be something like thios $this->form->fill(['url' => $url])?
yacovR
yacovR5mo ago
Maybe I did't not explaom well what I want. I want to automaticly fill the url paramenter when the user is filling form. For example: I filled the name in a form, so the url will have ?name=...
Dennis Koch
Dennis Koch5mo ago
Yep. Then my answer stays the same. You already should have $this->form->fill([]) for your form, then you just need to add some state for "url".
yacovR
yacovR5mo ago
So I should inject through javascript manually the fields to the url while typing?
Dennis Koch
Dennis Koch5mo ago
Oh, I didn't understand that you want that on the client side. Yeah, you probably need some custom JS for that.