Magento 2 – Show Captcha on Contact Us Form

contact-formmagento2

I use the below code in a CMS block to show the default magento contact us form.

<p>{{block 
    class="Magento\Contact\Block\ContactForm"
    name="contactForm" 
    template="Magento_Contact::form.phtml"}}</p>

Just wondering will there be a core way to enable captcha in the form?

Best Answer

In order to add CAPTHA to a Contact Us form you have to go to Stores -> Configuration -> Customers -> Customers Configuration page and Enable CAPTCHA. Make sure to select Contact Us value in Forms field.

enter image description here

Once you update configuration, clean cache.

Hope it helps.

Related Topic