Prevent contact creation from form submission if certain criteria is met.

I’m trying to find a way to have a hidden field on my form and then tell Hubspot that if the field contains any text, Do NOT Create contact. So far, I can’t seem to find a good solution aside from creating a workflow that says if the field contains text, delete the contact. I would rather prevent the creation of the contact entirely.

Is that possible?

Hi @MGibbons9,

Unfortunately not, no - at least not ouf of the box. It’s probably possible to hack a solution, manipulating the forms embed code with Javascript, see here: https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options

The idea would probably be to display an error message instead of letting the form submit.

Best regards!