{"id":5757,"date":"2024-04-14T12:07:31","date_gmt":"2024-04-14T04:07:31","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5757"},"modified":"2024-04-14T12:07:31","modified_gmt":"2024-04-14T04:07:31","slug":"insert-a-recaptcha-field","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/insert-a-recaptcha-field\/","title":{"rendered":"Insert a reCAPTCHA field"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p id=\"\">reCAPTCHA is an available service from Google that can aid in shielding form submissions from spam and misuse. The service is designed to make sure that only genuine users are submitting forms on your site. Discover more about utilizing reCAPTCHA in forms.<\/p>\n<p id=\"\">In this instructional session, you will grasp:<\/p>\n<ol id=\"\">\n<li id=\"\">Ways to include reCAPTCHA to forms<\/li>\n<li id=\"\">Methods to activate reCAPTCHA verification for a site<\/li>\n<li id=\"\">Techniques for tailoring the reCAPTCHA<\/li>\n<\/ol>\n<blockquote id=\"\"><p><strong id=\"\">Crucial:<\/strong> reCAPTCHA will not operate when you\u2019ve designated a custom form action to compile your form submissions.<\/p><\/blockquote>\n<blockquote id=\"\"><p><strong id=\"\">Crucial:<\/strong> Webflow forms utilizing reCAPTCHA won\u2019t work on exported sites. Should you plan to export your site, you&#8217;ll have to connect reCAPTCHA in your forms in accordance with <a href=\"https:\/\/developers.google.com\/recaptcha\/intro\" target=\"_blank\" rel=\"noopener\">Google&#8217;s reCAPTCHA guide<\/a>. Additionally, be informed about how to gather form submissions on exported sites.<\/p><\/blockquote>\n<h2 id=\"\">Ways to include reCAPTCHA to forms<\/h2>\n<p id=\"\">You can affix reCAPTCHA to your forms from the <strong id=\"\">Add panel<\/strong> &gt; <strong id=\"\">Elements<\/strong> section &gt; <strong id=\"\">Forms<\/strong> area. reCAPTCHA elements must be inserted into a form.<\/p>\n<blockquote id=\"\"><p><strong id=\"\">Crucial:<\/strong> reCAPTCHA will not show up on your live site until you empower validation in Site settings &gt; Forms section. It&#8217;s important to realize that this will enable reCAPTCHA validation across <em id=\"\">all<\/em> forms on your site, hence make sure to include a reCAPTCHA element in all of your forms.<\/p><\/blockquote>\n<h6 id=\"\"><strong id=\"\">Helpful hint:<\/strong> reCAPTCHA automatically detects the language of the site visitor and exhibits the widget in that language.<\/h6>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b948bdbdd37d12dce5daa5_63d451b1df1871f0abd60585_agd5b1bjadzndiqkbobhck-l8ew7dr9x0xcmurrvuhzborxt_srdojd-qfw9vphl53uctklms1d8ut2e8zlc4nyr2ozpo2jsmqdncczpvmn-3km9mlvmitpzltbtp_acj_8lnf7ktvmgpisqvmyajk.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"The reCAPTCHA icon is highlighted in the Forms section of the Add panel.\" title=\"64b948bdbdd37d12dce5daa5_63d451b1df1871f0abd60585_agd5b1bjadzndiqkbobhck-l8ew7dr9x0xcmurrvuhzborxt_srdojd-qfw9vphl53uctklms1d8ut2e8zlc4nyr2ozpo2jsmqdncczpvmn-3km9mlvmitpzltbtp_acj_8lnf7ktvmgpisqvmyajk\"><\/div>\n<\/figure>\n<h2 id=\"\">Methods to activate reCAPTCHA verification for a site<\/h2>\n<p id=\"\">You can configure reCAPTCHA on your site by following these steps:<\/p>\n<ol id=\"\">\n<li id=\"\">Register your site and produce API keys<\/li>\n<li id=\"\">Turn on reCAPTCHA verification<\/li>\n<\/ol>\n<h3 id=\"\">Register your site and produce API keys<\/h3>\n<ol id=\"\">\n<li id=\"\">Head to <a href=\"https:\/\/www.google.com\/recaptcha\/admin\" target=\"_blank\" rel=\"noopener\">Google\u2019s reCAPTCHA page<\/a><\/li>\n<li id=\"\">Select the <strong id=\"\">reCAPTCHA type<\/strong>: <strong id=\"\">reCAPTCHA v2<\/strong><\/li>\n<li id=\"\">Pick the<strong id=\"\"> \u201cI\u2019m not a robot\u201d Checkbox<\/strong><\/li>\n<\/ol>\n<p id=\"\">Afterwards, register all domains linked to your site by inputting them under <strong id=\"\">Domains<\/strong>. Once registered, you&#8217;ll be given 2 API keys (a Site Key and a Secret Key) in your reCAPTCHA settings. These keys will be used when activating reCAPTCHA verification in the next step.<\/p>\n<h6 id=\"\"><strong id=\"\">Note:<\/strong> Ensure to add any custom domains you\u2019re employing (e.g., \u201cexample.com\u201d). You can also incorporate \u201cexample.webflow.io\u201d (substituting \u201cexample\u201d with your subdomain) if you\u2019re using the subdomain for publishing, staging, or testing. Subdomains for a custom domain are automatically registered. This means registration for \u201cexample.com\u201d also registers \u201csubdomain.example.com.\u201d <a href=\"https:\/\/developers.google.com\/recaptcha\/docs\/domain_validation\" target=\"_blank\" id=\"\" rel=\"noopener\">Read more about Google reCAPTCHA&#8217;s domain name authentication<\/a>.<\/h6>\n<blockquote id=\"\"><p><strong id=\"\">Crucial:<\/strong> Registering domains may take up to 30 minutes to become effective.<\/p><\/blockquote>\n<h3 id=\"\">Turn on reCAPTCHA verification<\/h3>\n<p id=\"\"><strong id=\"\">Crucial:<\/strong><strong id=\"\">Prior to enabling reCAPTCHA on your site, <\/strong>remember that enabling reCAPTCHA will enforce validation for <em id=\"\">all<\/em> forms on your site. Any forms lacking a reCAPTCHA element will <strong id=\"\">be unsuccessful in submission<\/strong>. This adjustment will take place <strong id=\"\">instantly<\/strong> after you click Save (step 4 below), regardless of republishing your site or not. Ensure to add a reCAPTCHA element to each of your forms before activating reCAPTCHA.<\/p>\n<p id=\"\">To switch on reCAPTCHA verification on your site:<\/p>\n<ol id=\"\">\n<li id=\"\">Navigate to <strong id=\"\">Site settings<\/strong> &gt; <strong id=\"\">Forms<\/strong> section &gt; <strong id=\"\">reCAPTCHA validation<\/strong><\/li>\n<li id=\"\">Insert the API keys from Google (the <strong id=\"\">reCAPTCHA v2<\/strong><strong id=\"\">Site Key<\/strong> and the <strong id=\"\">reCAPTCHA v2 Secret Key<\/strong>) \u2014 into the relevant fields<\/li>\n<li id=\"\">Activate reCAPTCHA verification<\/li>\n<li id=\"\"><strong id=\"\">Save<\/strong> your adjustments<\/li>\n<li id=\"\"><strong id=\"\">Publish<\/strong> your site<\/li>\n<\/ol>\n<blockquote id=\"\"><p><strong id=\"\">Crucial:<\/strong> For protection and proper functionality, ensure not to paste the <strong id=\"\">Secret Key<\/strong> in the <strong id=\"\">Site Key<\/strong> field.<\/p><\/blockquote>\n<h6 id=\"\"><strong id=\"\">Note:<\/strong> If you prefer to continue designing, or you\u2019re not prepared to enable reCAPTCHA for all forms on your live site, you can return to Site settings to activate it later.<\/h6>\n<p id=\"\">We recommend verifying that the form operates correctly on your published site after adding a reCAPTCHA field.<\/p>\n<h2 id=\"\">Frequently Asked Questions and resolution<\/h2>\n<p id=\"\">If you face issues with reCAPTCHA, here are potential problems, alerts, error messages, and how you can troubleshoot them.<\/p>\n<h3 id=\"\">I can\u2019t observe the reCAPTCHA element on my published site<\/h3>\n<p id=\"\">Ensure you&#8217;ve activated reCAPTCHA verification, included a reCAPTCHA element in a form, and republished your site.<\/p>\n<p>your webpage<\/li>\n<li id=\"\">Try clearing your cache and then conducting another test<\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b948bdbdd37d12dce5daa1_63d451d333b806ec00b95ae5_e-sfiv5tjrd2c53_vgav5snd2_r74fllkdww7utcrailojlv7r55cvtvqshbelc-ubh5yfiy2orh2iygvef4leekzbicd5sfbpblgt8ridm2jgynqmo9vapxr7iahmd1oxti3_-xxfvu0xly9flufq.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt='The \"ERROR for site owner: Invalid domain for site key\" can be seen in the reCAPTCHA component.' title=\"64b948bdbdd37d12dce5daa1_63d451d333b806ec00b95ae5_e-sfiv5tjrd2c53_vgav5snd2_r74fllkdww7utcrailojlv7r55cvtvqshbelc-ubh5yfiy2orh2iygvef4leekzbicd5sfbpblgt8ridm2jgynqmo9vapxr7iahmd1oxti3_-xxfvu0xly9flufq\"><\/div>\n<\/figure>\n<h6 id=\"\"><strong id=\"\">Helpful hint<\/strong>: If clearing your cache doesn\u2019t resolve the issue, try testing in an incognito window. If the reCAPTCHA displays correctly without any errors, this action should refresh the cache for the reCAPTCHA configuration. By now, the reCAPTCHA should operate as expected in all browsing sessions. If the issue persists, delete the API keys (the <strong id=\"\">reCAPTCHA v2 Site Key<\/strong> and the <strong id=\"\">reCAPTCHA v2 Secret Key<\/strong>) and generate new ones. Afterwards, update both keys in your <strong id=\"\">Site settings<\/strong>. Keep in mind that the Site key and Secret key are case-sensitive.<\/h6>\n<h2 id=\"\">How to personalize the reCAPTCHA<\/h2>\n<p id=\"\">Though reCAPTCHA offers limited customization options, you can personalize it using custom attributes. Please be aware that styles applied via custom attributes will only reflect on your live site.<\/p>\n<h3 id=\"\">Modifying the reCAPTCHA\u2019s color scheme<\/h3>\n<p id=\"\">By default, the reCAPTCHA component comes in a light theme with a grey background and black text. You have the option to switch it to a dark theme featuring a black background with white text. To enable the dark theme:<\/p>\n<ol id=\"\">\n<li id=\"\">Choose the <strong id=\"\">reCAPTCHA <\/strong>component on the canvas<\/li>\n<li id=\"\">Navigate to <strong id=\"\">Element settings<\/strong> &gt; <strong id=\"\">Custom attributes<\/strong><\/li>\n<li id=\"\">Click on the \u201c<strong id=\"\">plus<\/strong>\u201d icon<\/li>\n<li id=\"\">Enter \u201cdata-theme\u201d in the <strong id=\"\">Name<\/strong> field<\/li>\n<li id=\"\">Input \u201cdark\u201d in the <strong id=\"\">Value<\/strong> field<\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b948bdbdd37d12dce5da9e_63e17ae48800ae5258d7da9a_yz1nry1d-a0uykdutjrbuibyhjhmpl3ipgrndrpwivyji71uthkihhp3rzhqpzi6xcuuwdjyo-t7llqhiugbs4m7sfwep-c6k0osfksfvu4-bfb0yg80gq7mrsk-f-7kg_bigqev5lgjvmxuppa45k.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"An emphasized dark theme reCAPTCHA within a form.\" title=\"64b948bdbdd37d12dce5da9e_63e17ae48800ae5258d7da9a_yz1nry1d-a0uykdutjrbuibyhjhmpl3ipgrndrpwivyji71uthkihhp3rzhqpzi6xcuuwdjyo-t7llqhiugbs4m7sfwep-c6k0osfksfvu4-bfb0yg80gq7mrsk-f-7kg_bigqev5lgjvmxuppa45k\"><\/div>\n<\/figure>\n<h3 id=\"\">Changing the reCAPTCHA&#8217;s dimensions<\/h3>\n<p id=\"\">The reCAPTCHA element comes with a predefined size. You can make it more compressed by adding a custom attribute.<\/p>\n<p id=\"\">To reduce the size of the reCAPTCHA component:<\/p>\n<ol id=\"\">\n<li id=\"\">Select the <strong id=\"\">reCAPTCHA <\/strong>element on the canvas<\/li>\n<li id=\"\">Access <strong id=\"\">Element settings<\/strong> &gt; <strong id=\"\">Custom attributes<\/strong><\/li>\n<li id=\"\">Tap on the \u201c<strong id=\"\">plus<\/strong>\u201d icon<\/li>\n<li id=\"\">Insert \u201cdata-size\u201d in the <strong id=\"\">Name<\/strong> field<\/li>\n<li id=\"\">Type \u201ccompact\u201d in the <strong id=\"\">Value<\/strong> field<\/li>\n<\/ol>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\"data-rt-type=\"image\"data-rt-align=\"fullwidth\"data-rt-max-width=\"1501px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b948bdbdd37d12dce5daa9_63e17ae426f30df9b83196c4_cokutrmb-scc2u7pxgu22bunf9jglh0usoijt6qyqgvkycjdjgknsmxvs-6em8g2e6rkzadajgdzkvh-_lm0lzl1p7f4wzmubtfrpvudihqixrh8vvipnqvzhae-7jp53jbjjalvyytfabxmu4yvgg.png\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" alt=\"An emphasized compressed reCAPTCHA element within a form.\" title=\"64b948bdbdd37d12dce5daa9_63e17ae426f30df9b83196c4_cokutrmb-scc2u7pxgu22bunf9jglh0usoijt6qyqgvkycjdjgknsmxvs-6em8g2e6rkzadajgdzkvh-_lm0lzl1p7f4wzmubtfrpvudihqixrh8vvipnqvzhae-7jp53jbjjalvyytfabxmu4yvgg\"><\/div>\n<\/figure>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Learn how to add a reCAPTCHA field to your forms.","protected":false},"author":2,"featured_media":5157,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[290],"tags":[],"class_list":{"0":"post-5757","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-elements","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=5757"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5757\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5284"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}