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
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
Maybe you can do sth like ->after(Request $request) { redirect(foo); } ?
Not near a computer so cant look it up or test
But redirect to where ?
I want to open the edit modal
Hmm good question, if you go to /resource/id/edit it doesnt open the modal?
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 ?
same question, any help on this would solve my issue too.
Didn't find any solution, i had to do it another way
can you explain that way please
I am still stuck on it