# Assign contacts collected on a focus item to a segment

**URL:** <https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [December 27, 2022, 8:13am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512 "2022-12-27T08:13:06Z")\
**Posts on this page:** 7\
**Page:** 1

<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, 8:13am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/1 "2022-12-27T08:13:06Z")

</div>

**Your software**  
My Mautic version is:v4.4.5  
My PHP version is:7.4.32  
My Database type and version is:5.7.40

**Your problem**  
My problem is:  
I am collecting emails trough a focus item popup and I need to assign them to a certain segment so I could email to them later.

I don’t know how to achieve that.  
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 28, 2022, 3:30pm UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/2 "2022-12-28T15:30:45Z")

</div>

no one ? at least a clue please

---

<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 30, 2022, 4:32am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/3 "2022-12-30T04:32:14Z")

</div>

this is simple action at form level to change segment. however support it’s really poor.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 30, 2022, 7:22am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/4 "2022-12-30T07:22:34Z")

</div>

Support for what?

---

<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 30, 2022, 7:45am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/5 "2022-12-30T07:45:18Z")

</div>

Hello @joeyk - I had 2 stupid simple questions and no one replies for multiple days .

it’s a pitty because it seems that product it’s complex and nice.

This form action to change segment it’s really simple I should have looked deeper.

For second question to make a focus item/ modal form to close after form submission no one answered and this is trailing for years…

thank you,  
Daniel

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 30, 2022, 8:36am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/6 "2022-12-30T08:36:56Z")

</div>

Plz give the forum a little time, nice people hang out here and they help for free. I think most forum readers are still in the stage of carb coma after xmas, and more activity is expected after new years.

Regarding your first question:

> This form action to change segment it’s really simple I should have looked deeper.

Correct.

Second question:

> For second question to make a focus item/ modal form to close after form submission no one answered and this is trailing for years…

I think it it’s coded in a way, that it doesn’t disappear.

1. If the form embedded into the focus item has a success text, then that is displayed. The conacts can close after reading the success message.
2. If you use redirect, then the contact is redirected, I just tested it.

I’m sure you can add JS to close the modal/notification, etx. after X seconds of submission.

---

<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 30, 2022, 9:29am UTC](https://forum.mautic.org/t/assign-contacts-collected-on-a-focus-item-to-a-segment/26512/7 "2022-12-30T09:29:03Z")

</div>

thank you @joeyk - your answer really made the difference . I see that you are present and answering a ton of cases !

fact it’s that I have one ecommerce site + one blog in subdomain and mautic in another subdomain.

I am collecting / poping-up forms on ecomm site and blog , focus form item from mautic subdomain.

I have read again thread of emails from [https://forum.mautic.org/t/focus-item-form-modal-popup-not-closing-after-form-submission/8900](https://forum.mautic.org/t/focus-item-form-modal-popup-not-closing-after-form-submission/8900)  
and I think that my problem it’s that I am missing mautic-form.js file . I will look further.

Once again thank you !
