Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Invisible reCaptcha in web forms in Liferay 7.1
Hi, there!
I want to ask if someone of you have ever tried to implement invisible captcha in liferay web forms? I'm talking about this one https://developers.google.com/recaptcha/docs/invisible . I need to do it in my project on liferay version 7.1-GA1. Do you think that this is possible and which is the right way to do so? The only thing that comes to my mind is to hook forms view.jsp and implement this new captcha version there.
Looking forward for your help! Thanks in advance!
Regards,
Eli
Hi Eli
Yes we implemented this in one of our projects, but that is liferay 7 and not in 7.1
However, I hope that it should be similar in 7.1 too. You can achieve this via a fragment module to override the recaptcha.jsp of captcha-taglib. Follow the standard way as suggested by Google to use invisible recaptcha (use of data-size invisible and making a callback function to submit the form if token is valid).
In addition to this you should also override and customize the form.js of 'dynamic data mapping form renderer' to make a call to grecaptcha.execute() if there are no errors in the filled form.
Hope this helps
Shubhankit Roy
Thank you very much for the fast reply and for the solution that you share! It seems a great approach for solving this issue. Thank you once again!
Greetings,
Eli
Hi Shubhankit,
Hi Eli
Yes we implemented this in one of our projects, but that is liferay 7
and not in 7.1
However, I hope that it should be similar in 7.1 too. You can achieve
this via a fragment module to override the recaptcha.jsp of
captcha-taglib. Follow the standard way as suggested by Google to use
invisible recaptcha (use of data-size invisible and making a callback
function to submit the form if token is valid).
In addition to this you should also override and customize the
form.js of 'dynamic data mapping form renderer' to make a call to
grecaptcha.execute() if there are no errors in the filled form.
Hope this helps
Shubhankit Roy
Can you help me to get invisible Recaptcha working. I followed your suggestions, still couldnt get it working.
Here I have posted my issue https://liferay.dev/forums/-/message_boards/message/118102281
Powered by Liferay™