Mautic Community Forums

Segment based on field selection

Hello

I hav created a form with ProductType in it (this is a custom field with select type in which i have two values in it EE and Textile.

I have created two segment EE and Textile, and in the segment settings I have included filter based on the field value EE and Textile respectively to each one (Textile for Textile Segment, and EE for EE segment).

On the form I have included as Action Add to Segment, Add contact to selected segment(s) and i added the two value EE and Textile.

Nevertheles if i select only one value in the form, it seems the contact get added to both segment and not only to the one that got selected in the dropdown.

When I check in the form view results I see the contact having only one value, so it is recorded properly from the form. The problem seems to come from Segment allocation.

Here is a print screen of my cron tasks : https://snag.gy/qSB75C.jpg

What I am doing wrong ?

Hello
I hav created a form with ProductType in it (this is a custom field with select type in which i have two values in it EE and Textile.
I have created two segment EE and Textile, and in the segment settings I have included filter based on the field value EE and Textile respectively to each one (Textile for Textile Segment, and EE for EE segment).
On the form I have included as Action Add to Segment, Add contact to selected segment(s) and i added the two value EE and Textile.
Nevertheles if i select only one value in the form, it seems the contact get added to both segment and not only to the one that got selected in the dropdown.
When I check in the form view results I see the contact having only one value, so it is recorded properly from the form. The problem seems to come from Segment allocation.
Here is a print screen of my cron tasks : https://snag.gy/qSB75C.jpg
What I am doing wrong ?

Hi Laurent,

Did you try to remove the form’s action “add to segment”
In deed your contacts will be created on form submission and then the cron jobs will update each segment automatically depending on the filters.

If you tell your form to add the contact to two segments it will be added to the two segments without checking the filters/condition

What version are you using?
mautic:leadlists is an ancient cron and no longer used, if I recall: https://www.mautic.org/community/index.php/4855-2-0-new-mautic-cli-commands/0

I can’t even get the campaigns to work based a form condition in 2.7.1. Once it reaches a condition, the campaign stops as if there’s no further steps.

If you are using 2.7.1, could you please post your workflow?

I am using the last version of Mautic.
I have just setup a form and two segments at the moment
Is there any way we can test it is working without running cron task ? I tried to copy paste the path in my browser but i got a 403 error

IT was indeed a problem of cron task