Do not contact option

Your software
My Mautic version is:
My PHP version is: 7.0.33

Your problem
My problem is: How can i set up “do not contact” option for people who submit a specific form? Is there a way to do that in mautic?

These errors are showing in the log:

Steps I have tried to fix the problem:

People generally follow the unsubscribe route in Mautic. Mautic has several such options in settings. Once someone unsubscribes they will be flagged as “Do not contact”.