FilamentF
Filament12mo ago
elben

How to trigger an action from another action?

I have an infolist which displays a record. It has two header actions. 'Edit report' and 'Enhance with AI'.

'Edit report' opens a form which allows a user to edit the record and save.

When 'Enhance with AI' is clicked, I want it to open a form modal with takes some instructions which is used to improve the report(which is sent to chatGPT), I then want to open the 'Edit report' action modal and insert the enhanced report into it which the user can review and submit.

How do I trigger the 'Edit report' action from 'Enhance with AI' action?

Thanks
Was this page helpful?