Turn on recaptcha in forms
Last Update: Nov 2024 • Est. Read Time: 2 MINYou can turn on recaptcha on your contact forms to prevent spam and bots from submitting conversations in Kustomer.
Who can access this feature? | |
User types | Content administrators can access the Forms page. |
In this article
Turn on recaptcha
- Go to Settings
and select Knowledge Base > Forms.
- Select
for the form you want to enable recaptcha.
- Turn on the Recaptcha toggle in the Form Settings panel.
- If using the code editor to create your form, you can add recaptcha by adding recaptcha={true} to the <Form> component as a property.
To disable it, you can change the line to recaptcha={false} or remove it entirely from your code.
Once recaptcha is turned on, the Submit button on your form will remain off until the recaptcha is selected.
Use recaptcha in a custom theme
If you are using a custom theme, you may need to do some additional modifications to your theme for the recaptcha to display properly. Here are some FAQ when turning on recaptcha on a custom theme:
Why does my Submit button look disabled (grayed out)?
To solve this, please add the following code to your custom style.css theme:
.btn:disabled { opacity: 0.65; } .btn-primary:disabled { background-color: #2D96CD; color: white; border-color: none; }
My recaptcha widget is out of alignment. How do I position it differently?
You can reposition the widget by creating a new CSS file in your theme.
- From Settings, select Knowledgebase > Themes.
- Select Edit
for your theme.
- Select Add New.
- Select Global from the Theme Target drop-down menu.
- Enter recaptcha in the File Name box and select CSS from the File Type drop-down menu.
- Select Create.
- Go back to the Themes page and select the Default Theme.
- Open the recaptcha.css file and copy its contents.
- Go back to the Themes page and select your custom theme. Paste the file in your new recaptcha.css file for your theme.
- Select Save.