Focus Item Form not Closing after Form Submission

Your software
My Mautic version is:4.2
My PHP version is:7.4.27
My Database type and version is:10.3.32-MariaDB

Your problem
My problem is:

This issue has been addressed in the past, but is still not fixed, so I reiterate it:

I have created a form that will be displayed on my website via Focus Items. After clicking on submit, the form will not close. Do you have a solution?

The solution provided here did not help:

Where is the problem? Does anyone have a solution?

Regards

These errors are showing in the log:
It does not appear in the log
Steps I have tried to fix the problem:
I have no repair procedure

Let me clarify the question:

This problem only affects if the form is set to “Successful Submit Action” to “Display Message”, where the message returns to the forms after the message is displayed and the Focus items window does not close.

If it is set in the form “Redirect url”, then it will be redirected to the page.

I also tried to insert

Modal.close ();

according to this

but it doesn’t work.

Hello @rohaty
HAve you found a solution to this ? I have the same issue.
thank you,
Daniel

Where to insert this ? to redirect url ?

I have put it on redirect but does not work, says page not found.