# Campaing with form field conditions

**URL:** <https://forum.mautic.org/t/campaing-with-form-field-conditions/29348>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [September 18, 2023, 6:44pm UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348 "2023-09-18T18:44:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [September 18, 2023, 6:44pm UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/1 "2023-09-18T18:44:44Z")

</div>

My Mautic version is: 4.4.10

Hi There,

I’m trying to set up a campaign. The form has a select field where people can select one of four products to receive a whitepaper from. In the campaign I have set up several conditions to check what whitepaper people are requesting. Everything goes fine until I fill in the form again to request another whitepaper. Then I only receive the whitepaper I already received last time. So it looks like it stops at the condition from the previous form completion.

See the screenshot for an example. Can someone please help me?

 ![Scherm­afbeelding 2023-09-18 om 20.42.39](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5ef0a2c2f3184b728d84e52b6ef8d2fd3f1f3512.png)

---

<div class="post-metadata">

**Author:** ![Leon\_Oltmanns](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leon_oltmanns/32/10629_2.png) [@Leon\_Oltmanns](https://forum.mautic.org/u/Leon_Oltmanns)\
**Post date:** [September 19, 2023, 6:16am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/2 "2023-09-19T06:16:51Z")

</div>

Hi @klaasvna ,  
could you share a bit more information about your construct? It would be good to see how the Select Field is constructed in the form, how the condition to check for the select field is done and also, if the contacts are ever removed from the campaign or just wait at the bottom until the form is filled out again.

Greets  
Leon

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [September 19, 2023, 7:03am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/3 "2023-09-19T07:03:27Z")

</div>

Hi Leon,

When I read your comment I thought I had the solution. I added a “change campaign” action to the bottom of each ‘funnel’ to remove the contact from the campaign. But it didn’t work. When I filled out the form the second time I got the same whitepaper as the previous time. In some way it keeps remembering the previous form completions.

I got some screenshots of the select field and the condition check…Hope it helps.

 ![Scherm­afbeelding 2023-09-19 om 08.43.51](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2c1c126f99e402686926e29e62272b589a6c53eb.png)  
 ![Scherm­afbeelding 2023-09-19 om 08.43.57](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4919ae697913318aa103383c21d3c1ae1cf84e37.png)  
 ![Scherm­afbeelding 2023-09-19 om 08.44.09](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/965e2b8c350904028c6f41f65c9b622114734c8a.png)  
 ![Scherm­afbeelding 2023-09-19 om 09.02.10](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2460e24a2c96b8fa467285c2e84f812da2e9448a.png)

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [September 19, 2023, 7:54am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/4 "2023-09-19T07:54:55Z")

</div>

I think what is happening is the value first selected when the form is filled out for the 1st time is still true when the form is completed the second time, so when it checks for the 1 st condition, it sends the 1st white paper as the condition is true.

Try adding a step, after the sending of the white paper, to reset the field that holds the form value field.

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [September 19, 2023, 8:00am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/5 "2023-09-19T08:00:03Z")

</div>

Hi Rob,

I guess that exactly what’s happening. How can I reset that field? I can’t find an option like that.

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [September 19, 2023, 8:57am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/6 "2023-09-19T08:57:10Z")

</div>

It’s only working when I delete all form submissions or the contact, but thoose two actions are not desirable.

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [September 19, 2023, 9:11am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/7 "2023-09-19T09:11:08Z")

</div>

How are you storing the form field value, I assume as a custom field, or maybe a tag?

I would have a form action be to apply a tag that relates to the white paper they have requested. In the campaign have a condition that look for the presence of that tag, if yes then send the white paper. Then have an action after the email send option that removes the tag, using the modify tag option.

If you want to keep track of who has received which white paper you could have a campaign step that adds them to a segment based on which white paper they requested, or apply a different tag that is not removed, and not sued to trigger the email send, but is only their to ID which contacts have received which white papers.

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [September 19, 2023, 10:07am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/8 "2023-09-19T10:07:46Z")

</div>

Hi Rob,

Thanks for your reply. No I’m not storing the form field value as a custom field of tag. As far as I can see, I can only apply a general tag as a form action. So I cant set a specific tag based on the form input.

I now got some sort of a workaround → I first created a campaign to add contact to a segment based on the form input. So if someone requests whitepaper A they get assigned to the Whitepaper A segment.  
Second, I created four campaigns (this form has four whitepaper options) which start when a contact gets assigned to a certain segment. When the contact is added to the segment the mail is being sent. When I fill out the form another time and selecting another whitepaper. The contact is added to a new segment and I receive the new email. That works fine!

But when I try to request a whitepaper for the second time, I dont receive it anymore because I already are in that specific segment.

When I try to solve this problem by removing the contact from the segment after the whitepaper mail is sent, I ran into a similar problem as before. My old form submission are remembered and I will again receive multiple whitepaper.

Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [September 19, 2023, 10:50am UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/9 "2023-09-19T10:50:05Z")

</div>

I got it to work properly! I stored the information from the dropdown field in a custom contact field. So when people choose whitepaper A, the value is stored in the contact field. Then they enter the campaign, there I’ve setup several conditions to check the value of the contact field. So if the contact field value is Whitepaper A they receive the corresponding emails.

When I fill out the form a second time the contact field value is overwritten, so it will send the right whitepaper. After that I can come back and request a whitepaper a requested before and it will still send the right one.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [September 20, 2023, 10:50pm UTC](https://forum.mautic.org/t/campaing-with-form-field-conditions/29348/10 "2023-09-20T22:50:55Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
