# How to add a hidden field that upon login will auto activate a specific Campaign

**URL:** <https://forum.mautic.org/t/how-to-add-a-hidden-field-that-upon-login-will-auto-activate-a-specific-campaign/19255>\
**Category:** Product Support\
**Created:** [April 28, 2021, 11:44pm UTC](https://forum.mautic.org/t/how-to-add-a-hidden-field-that-upon-login-will-auto-activate-a-specific-campaign/19255 "2021-04-28T23:44:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommytx123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tommytx123/32/833_2.png) [@tommytx123](https://forum.mautic.org/u/tommytx123)\
**Post date:** [April 28, 2021, 11:44pm UTC](https://forum.mautic.org/t/how-to-add-a-hidden-field-that-upon-login-will-auto-activate-a-specific-campaign/19255/1 "2021-04-28T23:44:16Z")

</div>

**Your software**  
My Mautic version is:3.3.2  
My PHP version is:7.3  
My Database type and version is: Mysql

My problem is: When a user registers from a specific form I want to have Mautic begin specific campaign…Is there anything that can be placed in a hidden field to let Mautic know that I want this to happen immediately upon a user logging in from this particualar form?

These errors are showing in the log: None

Steps I have tried to fix the problem: Looked tons of previous problems to see if i could find anyone having this particular question… with no results.  
Any suggestions would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [April 29, 2021, 4:08am UTC](https://forum.mautic.org/t/how-to-add-a-hidden-field-that-upon-login-will-auto-activate-a-specific-campaign/19255/2 "2021-04-29T04:08:08Z")

</div>

Hi tommytx123,

> When a user registers from a specific form I want to have Mautic begin specific campaign

This should be simple, no need for a hidden field:

- The straight-forward way would be to use a campaign form, and let that be the starting point for your campaign.
- The other option would be to have a standalone form, and add a “Modify contact’s segments” action to it. Plus have that segment serve as the campaign starting point.

Best,  
Ekke

* * *

Ekke Guembel

**Mautic Open Source Project, Team Lead “Community”**  
Mail: [ekke.guembel@mautic.org](mailto:ekke.guembel@mautic.org)  
Phone: +49 511 6262 9311  
Profile & Social Media: [Ekkehard Gümbel](http://Leuchtfeuer.com/ekke)  
Mautic Podcast: [mauticast.de](http://mauticast.de) (DE) / [mauticast.com](http://mauticast.com) (EN)

---

<div class="post-metadata">

**Author:** ![tommytx123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tommytx123/32/833_2.png) [@tommytx123](https://forum.mautic.org/u/tommytx123)\
**Post date:** [April 29, 2021, 11:34pm UTC](https://forum.mautic.org/t/how-to-add-a-hidden-field-that-upon-login-will-auto-activate-a-specific-campaign/19255/3 "2021-04-29T23:34:17Z")

</div>

That worked great Ekke… so simple that its embarrasing that I asked… but I learn more every day… Thank you for you help…
