Custom Field Recaptcha version 2

Kentico 10 supports very nicely Google ReCaptcha version 1.

Because Google tagged version 1 is obsolete and in web master tools, you can generate only keys for version 2, we decided to implement a custom form control for Recaptcha version 2.
We have cloned Kentico Captcha selector defining another source file for it.


Keep in mind Kentico Best practice to create separate folders for you custom code: custom modules, custom web parts, custom form controls. Call the name of the folder distinct from CMS, Kentico…etc. We ussualy use project/client name 😊

Now, back to implementing custom code that renders Googles Captcha – I am not a robot.
Same as Kentico does with ReCaptcha, we have implemented a custom web control with two custom properties required for google captcha: private key and public key.



In the render contents method we register Google scrips and html:



The only thing left is no implement a public method we can call from Kentico custom form control code that returns if captcha control is valid.
 


In Kentico, we need to alter the cloned code for our custom FormControl.
First we need to replace cms:Recapctha with our custom control, implemented earlier.


In the code behind, clean-up what is not relevant for our control.



Validation will be made differently, but simple. Just call captcha control public method, validate, or return its output.



Finally yet importantly, do not forget to set up Google keys for your custom control. In this case, we read Kentico default settings for Google ReCaptcha. New custom settings fields can be created, but that in another post 😊

Comments
london bricks company UK
Wonderful post, I enjoyed your distinguished way of writing the post. Thanks, you have made it easy for me to understand. Thanks
12/14/2018 9:27:14 AM

Www.Mcafee.Com/Activate, Www.Mcafee.Com/Retailcard
McAfee Antivirus software with all the updated versions is available in form of CD and also available at the online webpage www.www-mcafee-com-activate.net.
12/12/2018 6:29:27 AM

Www.Mcafee.Com/Retailcard, Mcafee.Com/Activate
How You Can Redeem Your McAfee Product Key and Get You Antivirus Activated In Few Easy steps. Quick Learn How You Can Use www.mcafee.com/activate to Activate McAfee using Product Key.
12/12/2018 6:21:36 AM

Www.Mcafee.Com/Activate, Mcafee.Com/Retailcard
McAfee antivirus tool which is very useful for those, who need to get amazing security provider for their personal computer. You can get more features and enhanced services of protection against malicious attacks.
12/12/2018 6:14:01 AM

Www.Avg.Com/Retail, Avg.Com/Retail
Dial the AVG Antivirus Customer support phone number to get quick help and solutions to the problems over the phone. Seek immediate customer service for AVG antivirus.
12/12/2018 6:08:24 AM

Www.Office.Com/Myaccount, Office.Com/Myaccount
Let's Connect with our skilled MS Office setup experts via Email, call or live chat and get instant and immediate support for any Office.Com/Setup related query. We choose to solve your issues remotely so your time and money can be saved.
12/12/2018 6:03:41 AM

Www.Office.Com/ Setup, Office.Com/Setup
We are a Microsoft Office setup support provider to offer full-fledged technical support for those users who have any sort of issues concerning about MS Office applications.
12/11/2018 12:19:53 PM

Carbonless Forms Booklets
You have provided good information. I would love to read more on such topics. Thank you very much for it and carry on it.
12/6/2018 8:36:59 AM

Skycap Loans
Skycap Loans provides loans up to $10,000 and the application process is quick and easy, followed by a fast loan decision. If you’re improving your spending habits, you may never have to use a service like this. But it’s good to know it’s there.
12/4/2018 9:15:05 AM

Share Market kya hai
Thanks for sharing this nice information with us,
11/29/2018 6:06:23 PM

Sub-Inspector taiyari kaise kare
Thanks for sharing!
11/29/2018 6:05:25 PM

Ram kya hai
Thank you!
11/29/2018 6:04:03 PM

Small claims Mississauga
As we know some people have creative minds. They have amazing ideas to produce something new. People are producing some new things and want to offer things to others. They can be impressed others by the creative designs of different things.
11/5/2018 11:35:43 AM

Blade Runner Jacket
Thank you that you have thought something as wonderful as this. I love oils and candles, especially in our house. It makes me feel relax every time I smell and see a lighted candle. My mom would always buy a set of scented candles. I hope that we can drop by at your store and experience your good service and quality products. I also want to meet Mama Izzy in person. I love this post and the story behind this shop.
11/5/2018 11:29:23 AM

best digital camera with flip screen
Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best!
10/31/2018 10:26:02 AM

Justin
I am very glad to read this info.
10/31/2018 7:40:59 AM

bigpond email help
Hello my loved one! I wish to say that this post is awesome, nice written and include approximately all important infos. I’d like to look more posts like this . Very nice post.
10/27/2018 8:59:04 AM

Cresus casino
A portion of the points of interest might be that you could be offered free beverages, or.
10/9/2018 8:02:40 PM

casino promo
the by, as an ethical individual and well behaved citizenComputer Technology Articles, every individual who is mulling over purchasing these machines should know the actualities.
9/25/2018 6:19:01 PM

dublinbet
You simply need to sign in and begin playing. Every one of the players are as of now there and you can begin playing whenever, night or day.
9/24/2018 10:01:20 AM

bigpond email customer service
This is very interesting, You are a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I have shared your website in my social networks!.
9/17/2018 8:07:22 AM

mafia online
<a href="https://mafiah5.yottagames.com/play/">mafia city game</a> holds onto some of the basic tenets of games like the big splashes of Dear Esther or The Stanley Parable, which is to say that it’s in first-person, it doesn’t have much interest in traditional gameplay
9/13/2018 6:11:01 AM

finmax
Nonetheless, regardless of whether you are an ace or unpracticed, learning things is imperative, before you relegate a representative to carry out the activity for you.
8/9/2018 8:06:22 AM

amazon fire stick help
This blog has Some interesting valid points! I appreciate on your blog this is well written and the rest of the website is extremely good.
7/30/2018 5:50:09 AM

pay for assignment writing
The energy lately historically energy and effective the purpose,more chemicals and puppet master always. Keep sure this addisolv blog and including the more weather weapons for the perfect avoidance.
7/3/2018 12:00:34 PM

Assignment Help Experts
This is really great work. Thank you for sharing such a good and useful information here in the blog for students.
6/27/2018 9:20:30 AM

Nursing Assignment Writing Service
The leading assignment help UK firm offers state of the art services to its clients with a promise of delivering all the required work well within the deadline.
6/27/2018 9:19:33 AM

Do My Stats Homework For Me
I’m really impressed with your article, such great & usefull knowledge you mentioned here
6/27/2018 9:18:34 AM

finance assignment writing
Things are very open and intensely clear explanation of issues. was truly information. Your website is very beneficial.
6/27/2018 9:17:42 AM

help with mba assignment
Steel Hawk's are amazing. I have watched them play multiple times now and all of those times, they blew me away with their play. They're extremely synced with each other.
3/13/2018 6:38:56 AM

buy law assignment online
It is stated that there are management issues at ravenswood McDonald’s. Staff of this shopping centre is not performing well. Customers have many complaints from the poor management. So, all management issues must be resolved by manager to attract more customers.
3/2/2018 10:11:49 AM

assignment experts
The Captcha works splendidly and the error message shows fine. However, the issue is the server side approval then re-stacking the frame with the POSTed esteems. Every single standard esteem stack fine on account of the code above however I have a few picture fields and two scientific classification fields in my frame and these lose their values.
2/22/2018 6:57:12 AM

Buy Tom Cruise Jacket Online
Home coming brush arbor baptist church the more and great thought it would be a great place to have home coming. The more objectives with brusharborbaptistchurch site and making on better ground afterward,thanks.
2/13/2018 7:35:23 AM

scholarship essay
I am very happy to see this jounals here. it is really nice and i can get good networks here. The teaching and program are provide to the college students for developing their communication skill and writing skill. Our writing papers are fully having ability to make your knowledge as wonderful and given fresh types of materials in online. Scholarship essay writing service is providing scholarship application essays, admission essays.
1/25/2018 10:44:13 AM

Contact us

We’re glad to hear a Hello from you

start a project

Want to work with us? Let’s get started!

Contact us

USA
600 First Avenue, Seattle WA 98104
Phone: +1(206) 855-5280
Mail: info@addisolv.com

Romania
Buftea 1, 2nd floor, Cluj-Napoca
Phone: +40 374 954 345
Mail: info@addisolv.com

Certified partner in

Let's keep in touch on