You need to sign in to do that
Don't have an account?
Amit Singh 2236
LWC/Lightning ReCaptcha Verify Image selection pop up size issue in form
Verify Image selection pop up size issue in form through vf page embedded in LWC/Lightning
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Are you saying that the VF page containing the Recaptcha is not responsive and does not fit the screen if the user resizes the window? You might want to consider CSS overrides with screen size breakpoints to fix the issue
See https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/vf_dev_best_practices_slds_responsive.htm that explains Responsive VF page design using SLDS
https://www.lightningdesignsystem.com/utilities/sizing/
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
<apex:page showHeader="false" sidebar="false" >
<apex:includeLightning />
<html>
<head>
<title>reCAPTCHA demo: Explicit render after an onload callback</title>
<script type="text/javascript">
var verifyCallback = function(response) {
parent.postMessage("Unlock", " ");
// console.log('Unlock----',Unlock);
};
var onloadCallback = function() {
grecaptcha.render('html_element', {
'sitekey' :'Secret Key',
'callback' : verifyCallback,
'expired-callback': function () {
grecaptcha.reset();
console.log('recatpcha');
}
});
};
</script>
</head>
<body>
<form action="?" method="POST">
<div id="html_element"></div>
<br/>
<input type="submit" value="Submit" style="display:none"/>
</form>
<!--<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async="" defer="">
</script> -->
<script src="https://www.recaptcha.net/recaptcha/api.js?onload=onloadCallback&render=explicit" async="" defer=""></script>
</body>
</html>
I am using Firefox(latest version) Can you share your browser specifications? Is the window 100% sized?
See the below links for more details:
https://stackoverflow.com/questions/28594842/no-captcha-recaptcha-resizing
https://stackoverflow.com/questions/45643077/recaptcha-v2-image-select-popup-iframe-fixed-height-too-small
https://stackoverflow.com/questions/21988870/responsive-recaptcha-without-image-cut-out/23160104
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
https://stackoverflow.com/questions/28594842/no-captcha-recaptcha-resizing
https://stackoverflow.com/questions/45643077/recaptcha-v2-image-select-popup-iframe-fixed-height-too-small
https://stackoverflow.com/questions/21988870/responsive-recaptcha-without-image-cut-out/23160104
Thank you
You can consider implementing the google recptcha in lightning web component and this doesn't require any vf page either.
https://inevitableyogendra.blogspot.com/2021/09/using-google-recaptcha-v2-in-lightning-web-component.html