Disappearing recaptchaDisappearing recaptchahttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1142107842024-03-29T04:48:39Z2024-03-29T04:48:39ZDisappearing recaptchaMark Clarkehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142107832019-07-05T09:55:57Z2019-07-05T09:55:57ZHi all,<br />We have 14 or so sites all using the same template and all with a form. The forms have google recaptcha enabled. On most of the sites the form work without any issue but on two sites the google captcha widget disappears as soon as one types in any one of the "required" input boxes.<br />In the console I can see a request being made to "https://abc.co.za/o/dynamic-data-mapping-form-context-provider/" and a response json coming back that contains the json posted below (which looks valid to me when comparing it to a working site.) <br />I also see a javascript error about an "Uncaught (in promise) timeout." a few second later. I have exported the form from a working site and imported it into one of the broken sites but no change. I also recreated one of the broken sites just in case there was an issue from a previous upgrade but the problem still persists. Does anyone have any idea where to look to solve this problem? As far as I can tell everything for these sites is configured correctly on the Google Captcha Admin Console too.<br /><br /><blockquote>[{"showRequiredFieldsWarning":true,"description":null,"localizedDescription":{},"rows":[{"columns":[{"size":12,"fields":[{"valid":false,"fieldName":"EmailAddress","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_3raehmKDldVA_ddm$$EmailAddress$k3Gn4vr5$0$$en_US","errorMessage":"This field is required.","options":[{"label":"Option","value":"Option"}],"label":"Email Address","value":"","enabled":true,"validation":{"expression":"","fieldName":"","dataType":"","errorMessage":""}}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"ContactNumberOptional","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_3raehmKDldVA_ddm$$ContactNumberOptional$pJk5tzD3$0$$en_US","options":[{"label":"Option","value":"Option"}],"label":"Contact Number (Optional)","value":"","enabled":true,"validation":{"expression":"","fieldName":"","dataType":"","errorMessage":""}}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"Subject","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_3raehmKDldVA_ddm$$Subject$CZ0vGzwM$0$$en_US","options":[{"label":"Option","value":"Option"}],"label":"Subject","value":"t","enabled":true,"validation":{"expression":"","fieldName":"","dataType":"","errorMessage":""}}]}]},{"columns":[{"size":12,"fields":[{"valid":false,"fieldName":"Message","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_3raehmKDldVA_ddm$$Message$IPJJGxsI$0$$en_US","errorMessage":"This field is required.","options":[{"label":"Option","value":"Option"}],"label":"Message","value":"","enabled":true,"validation":{"expression":"","fieldName":"","dataType":"","errorMessage":""}}]}]},{"columns":[{"size":12,"fields":[{"fieldName":"_CAPTCHA_","name":"_com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet_INSTANCE_3raehmKDldVA_ddm$$_CAPTCHA_$pa7GN9uD$0$$en_US","html":{"content":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t<script src=\"https:\/\/www.google.com\/recaptcha\/api.js?hl=en\" type=\"text\/javascript\"><\/script>\n\n\t<div class=\"g-recaptcha\" data-sitekey=\"64343dd\"><\/div>\n\n\t<noscript>\n\t\t<div style=\"height: 525px; width: 302px;\">\n\t\t\t<div style=\"height: 525px; position: relative; width: 302px;\">\n\t\t\t\t<div style=\"height: 525px; position: absolute; width: 302px;\">\n\t\t\t\t\t<iframe frameborder=\"0\" scrolling=\"no\" src=\"https:\/\/www.google.com\/recaptcha\/api\/fallback?k=64343dd\" style=\"border-style: none; height: 525px; width: 302px;\"><\/iframe>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div style=\"background: #F9F9F9; border-radius: 3px; border: 1px solid #C1C1C1; bottom: 25px; height: 60px; left: 0; margin: 0; padding: 0; position: absolute; right: 25px; width: 300px;\">\n\t\t\t\t\t<textarea class=\"g-recaptcha-response\" id=\"g-recaptcha-response\" name=\"g-recaptcha-response\" style=\"border: 1px solid #C1C1C1; height: 40px; margin: 10px 25px; padding: 0; resize: none; width: 250px;\"><\/textarea>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/noscript>\n","contentDirection":null,"contentKind":"HTML"},"label":"","value":"","enabled":true}]}]}],"title":null,"enabled":true,"localizedTitle":{}}]<br /></blockquote><br