Mautic Community Forums

Conditional Logic in Form

I was wondering if there’s a way to implement conditional logic into a form. I would like to have an additional required field (such as phone number) display if a lead selects a specific checkbox. Is this possible and if so how would you go about doing it?

I was wondering if there’s a way to implement conditional logic into a form. I would like to have an additional required field (such as phone number) display if a lead selects a specific checkbox. Is this possible and if so how would you go about doing it?

I think currently this is not possible within Mautic. However, if you e.g. use WordPress with Contact Form 7 plugin, you can do it with this.

You can achieve this sort of behaviour by using CSS. Here’s a simple example:

https://content.pivotal.io/blog/showing-and-hiding-conditional-html-without-javascript