# Focus Item Form not Closing after Form Submission

**URL:** <https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [March 11, 2022, 1:02pm UTC](https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008 "2022-03-11T13:02:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohaty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rohaty/32/510_2.png) [@rohaty](https://forum.mautic.org/u/rohaty)\
**Post date:** [March 11, 2022, 1:02pm UTC](https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008/1 "2022-03-11T13:02:02Z")

</div>

**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:

> [@Focus Item Form Modal Popup not Closing after Form Submission](https://forum.mautic.org/t/focus-item-form-modal-popup-not-closing-after-form-submission/8900):
>
> Hello, I am facing an issue. When i am display a form using focus item in my website after form gets submit, the redirection is done in modal popup iteself and its not getting closed and then redirecting. Can anyone please help me resolve this.

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

---

<div class="post-metadata">

**Author:** ![rohaty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rohaty/32/510_2.png) [@rohaty](https://forum.mautic.org/u/rohaty)\
**Post date:** [March 12, 2022, 7:14pm UTC](https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008/2 "2022-03-12T19:14:54Z")

</div>

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

> [@Focus Item Form Modal Popup not Closing after Form Submission](https://forum.mautic.org/t/focus-item-form-modal-popup-not-closing-after-form-submission/8900):
>
> Hello, I am facing an issue. When i am display a form using focus item in my website after form gets submit, the redirection is done in modal popup iteself and its not getting closed and then redirecting. Can anyone please help me resolve this.

but it doesn’t work.

---

<div class="post-metadata">

**Author:** ![dandumit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dandumit/32/6497_2.png) [@dandumit](https://forum.mautic.org/u/dandumit)\
**Post date:** [December 27, 2022, 4:00am UTC](https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008/3 "2022-12-27T04:00:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dandumit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dandumit/32/6497_2.png) [@dandumit](https://forum.mautic.org/u/dandumit)\
**Post date:** [December 27, 2022, 7:45am UTC](https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008/4 "2022-12-27T07:45:36Z")

</div>

> [@rohaty](#):
>
> Modal.close ();

Where to insert this ? to redirect url ?

---

<div class="post-metadata">

**Author:** ![dandumit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dandumit/32/6497_2.png) [@dandumit](https://forum.mautic.org/u/dandumit)\
**Post date:** [December 28, 2022, 4:35pm UTC](https://forum.mautic.org/t/focus-item-form-not-closing-after-form-submission/23008/5 "2022-12-28T16:35:30Z")

</div>

> [@rohaty](#):
>
> Modal.close ();

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