Sometimes your popularity can cause spambots to discover you. By adding a special field to your forms can stop invalid entries.

1. Add a honeypot field

Go to Settings > Custom fields

Add a new text field called Honeypot. Make sure you turn off the switch: 'Visible on forms'

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/812d16be-9df5-4e5f-aef4-48834eff154d/Untitled.png

2. Create your form

Once your form is ready, it's time to etend it. Add a new tetx field called Email2

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a4ea7f46-5d7b-4776-af0d-52c1a30b5e0b/Untitled.png

Make sure you choose the Contact Field tab and add the newly created Honeypot as paired field.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b0749933-4056-4830-8a51-0bc0074d1564/Untitled.png

Now add a html field. Turn off the header and give it a name. Let's call it Spamtrap.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3e0fcfaf-7b46-4c8b-a1a0-028e681cb270/Untitled.png

Using the the Properties tab you can hide our evil Honeypot.

Add the following code:

<style>
	#mauticform_label_honeypottest_honeypot {display:none}
	#mauticform_input_honeypottest_email2 { display:none; } 
  #mauticform_label_honeypottest_email2 { display:none; }
</style>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2f75fa29-ea00-4ec2-bf97-7f506e0c1ac0/Untitled.png

<aside> ⚠️ Important! The code has to contain your form's name. Simply add the name of your form in there without capital letters and spaces.

</aside>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c6434d25-6613-4f8b-921c-047f51e102c6/Untitled.png