CraftCMS

The following describes how to integrate Trustcaptcha into your CraftCMS site.

Preparation

The following preparations should be made before you begin integrating Trustcaptcha into your CraftCMS website.

Requirements

  • An account with Trustcaptcha and an existing CAPTCHA.
  • A website with CraftCMS into which Trustcaptcha will be integrated.

Supported CraftCMS Plugins

Trustcaptcha can be manually integrated into any use case in CraftCMS. Additionally, we provide special support for the following plugins:
  • User Registrations
  • Contact Form
  • Formie
We are always striving to enable compatibility with more plugins. If you need support for another plugin, feel free to contact our support team.

Setup

Follow the steps below to integrate Trustcaptcha quickly and easily into your CraftCMS website.

1. Installation

Install the plugin using Composer:

2. Configuration

Configure the plugin under Settings -> Plugins -> Trustcaptcha. Providing a Site-Key and Secret Key is required. You can find these in your Captcha Management.
Trustcaptcha CraftCMS Settings

3. Integration

Next, insert the following code at all desired locations within form elements.
Finally, you need to validate the result. Plugins like Contact Form or User Registration are natively supported and can be activated in the Trustcaptcha plugin settings. For all other use cases, you can manually validate the result using the following code.

Formie

Trustcaptcha can be integrated into Formie. To do this, install Trustcaptcha and Formie. Then go to the settings Settings -> Plugins -> Formie -> Captchas. Activate and configure Trustcaptcha here. Providing a Site-Key and Secret Key is required. You can find these in your Captcha Management.
Now you need to - like any other Captcha plugin in Formie - activate Trustcaptcha. To do this, go to the settings of your created form and navigate to Integrations. Activate the Captcha here.