# Looking for a loop check solution

**URL:** https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692
**Category:** Mautic 4 Install/Upgrade Support
**Created:** [July 23, 2023, 1:37pm UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692 "2023-07-23T13:37:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![maudev](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@maudev](https://forum.mautic.org/u/maudev)
#### Post date: [July 23, 2023, 1:37pm UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692/1 "2023-07-23T13:37:16Z")

</div>

**Your software**  
_My PHP version is_ : 7.4  
_My MySQL/MariaDB version is_ (delete as applicable): 10.5.21-MariaDB-cll-lve

**Your problem**  
_My problem is_ :

I have a campaign from a form on which my client will submit a document to send to us for checking. Within 5 days, I have to send to the client the result file of checking. Then I wait for 7 days to send an email to ask them for a review (feedback, rate).

I created a custom contact field File\_URL which is the URL of the result file. In the campaign, I created an action to check if the field has value then send out the email to the client then the client can download the document.

The problem is the action above just executed once right at form submiting and will never execute again. Although I checked on "Allow contacts to restart the campaign " already.

Are there any way to keep watching on the field value?

_Steps I have tried to fix the problem_ :

I did also setup a group of campaign to loop on this with option “Allow contacts to restart the campaign” enabled. The first campaign will check for the field value, if it’s empty then remove from the campaign and add it to 2nd campaign. In the 2nd campaign, just move it back to 1st campaign to activate membership event for loop.

This works well but it created so many event logs in contact page.

I hope you have a solution for this. It’s great for me.

Thanks

---

<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: [July 24, 2023, 7:50am UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692/2 "2023-07-24T07:50:57Z")

</div>

Hi,  
Let’s define your requirements.

1. When a contact fills out a form, you get a notification + client gets a confirmation.
2. When the file is ready you add the ‘file\_url’ and the client get’s a notification.

In Mautic I would translate it as follows:

Campaign 1: Client uploads request  
This campaign starts with a form. First campaign step is an email to you, where you get a notification about the file being uploaded, The campaign ends.

Campaign 2: Clients recieves feedback  
Segment: Anyone who has file\_url not empty.  
Once you add content to the file\_url custom field, the campaign starts.  
The first action is an email, where you notify the customer about the ready document.

---

<div class="post-metadata">

### Author: ![maudev](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@maudev](https://forum.mautic.org/u/maudev)
#### Post date: [July 25, 2023, 1:29am UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692/3 "2023-07-25T01:29:57Z")

</div>

Hi Joey,

Let me try again and let you know.  
Thanks for taking a look on this.

Regards

---

<div class="post-metadata">

### Author: ![maudev](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@maudev](https://forum.mautic.org/u/maudev)
#### Post date: [July 25, 2023, 2:03am UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692/4 "2023-07-25T02:03:03Z")

</div>

Hi Joey,

Your way works well.  
Many thanks for that.

Regards

---

<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: [July 25, 2023, 6:11am UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692/5 "2023-07-25T06:11:09Z")

</div>

You are welcome.

---

<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: [July 26, 2023, 6:12pm UTC](https://forum.mautic.org/t/looking-for-a-loop-check-solution/28692/6 "2023-07-26T18:12:06Z")

</div>

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