F
Filament5mo ago
Milorn

Open edit modal right after create

I'm using a simple resource (create and edit is handled with modalss. How can i make it so that after creating the entity in the create modal it automatically shows the edit modal for that entity instead of just closing the modal and returning to the table ? In other words after create i want the edit modal to appear.
9 Replies
Milorn
Milorn5mo ago
Thank you for your answer sir. But there's no page or url, i'm using a simple resource so everything the create and edit are modals
Sjoerd24
Sjoerd245mo ago
Maybe you can do sth like ->after(Request $request) { redirect(foo); } ? Not near a computer so cant look it up or test
Milorn
Milorn5mo ago
But redirect to where ? I want to open the edit modal
Sjoerd24
Sjoerd245mo ago
Hmm good question, if you go to /resource/id/edit it doesnt open the modal?
Milorn
Milorn5mo ago
There's no edit page on my resource, it's a simple resource it only has one class of type ManageRecords If i were to reformulate my question it would be how can i trigger the edit modal of a given resource using dispatch or something else ?
pratik
pratik5mo ago
same question, any help on this would solve my issue too.
Milorn
Milorn5mo ago
Didn't find any solution, i had to do it another way
pratik
pratik5mo ago
can you explain that way please I am still stuck on it
Want results from more Discord servers?
Add your server
More Posts