Open url in modal action
Hello,
I am trying to open an url with parameters in a table modal. I want to open a modal, ask the user to write the message and then send it. So far I have the next code but I do not know how to make it work.
Solution:Jump to solution
Try this:
```php
Tables\Actions\Action::make('test')
->form([
TextInput::make('name')->reactive(),...
9 Replies
Any idea how I can do this?
It's not completely clear what you're trying to do... Can you maybe share a screenshot?
When I click the action, open the next modal. When I click the send button, I want to open an url with the data of the from. I get the data but I need to open theurl. Hope I explained well
One way to open a URL would be with a link. You can change the Send button into a link.
But how could I get the message contetn? The send button is rendered once the modal is open
If your fields are reactive() or lazy(), the button will re-render.
Solution
Try this:
Worked perfectly. Thank you very much.