Close Modal After Action from ManageRelatedRecords

I have a form on ManageRelatedRecords page which is reusing form of a Resource page. There on the resource form I have a custom action button. What I want is to have the edit modal gets closed on ManageRelatedRecords page once the action has been completed.

I am attaching video for better understanding.
Was this page helpful?