Captcha in Subscribe Widget

Posted by Community Admin on 04-Aug-2018 13:49

Captcha in Subscribe Widget

All Replies

Posted by Community Admin on 08-Mar-2016 00:00

 

Hi,

We are working on Sitefinity version 7.1.

We need to add captcha in the subscribe widget. Can any one help on this ? 

We tried the link below, but it does not work, the ".cs" page where the "AddSubscriber()" method is overridden is never called, we have followed exact instructions.

www.sitefinity.com/.../extend-subscribe-form-widget-with-server-side-captcha-validation

We can see the captcha, but the validation never fires.

Can anyone help on this to add captcha  / recaptcha on the subscribe widget, any working reference or code ?

This is very very urgent.

Thanks.

 

 

 

 

 

 

Posted by Community Admin on 11-Mar-2016 00:00

Hello Rakesh,

I have just tested this on my side on a Sitefinity 7.1 project following the exact steps from the KB article and the captcha is validated properly.

Please download the archive from the KB article and extract it in the root folder of your project solution. The archive contains the SubscribeFormCustom.cs file which is extending the custom Subscribe form widget. The SubscribeFormCustomTemplate.ascx file in the archive is the custom template that the custom subscribe form widget will use where I have added the captcha control in the markup.

Then please build the project and register the custom subscribe form (SubscribeFormCustom.cs) in the Toolboxes using Thunder as described in this article: http://docs.sitefinity.com/thunder-register-a-widget

Restart the application in order for the changes to take effect and you will be able to drop the custom Subscribe form on a page and test the behavior with the captcha.

I am also sending attached a video for your reference demonstrating the results on my side. As you can see from the video the overridden AddSubscriber() method is called and if the captcha is not valid the base AddSubscriber() method is not executed and the subscriber is not added to the mailing list.

Regards,
Sabrie Nedzhip
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 16-Mar-2016 00:00

Thanks very much for the reply.

We don't have Ditefinity thunder on our local development enviroment, how do we register without using Sitefinity thunder ?

 

 

Posted by Community Admin on 18-Mar-2016 00:00

Hello Rakesh,

Please check the below article describing the different approaches to register custom widgets in the Sitefinity toolbox:

http://docs.sitefinity.com/register-a-new-widget-in-sitefinity-toolbox

You can register the widget directly in the backend following the steps described here: http://docs.sitefinity.com/register-a-new-widget-in-the-backend

In the Control CLR type or virtual path field enter the fully qualified type name of the widget.
For example: SitefinityWebApp.MyFolder.MyCustomWidget, SitefinityWebApp

If the SubscribeFormCustom.cs (which inherits from SubscribeForm) file is created in the root project folder in the Control CLR type or virtual path field enter: SitefinityWebApp.SubscribeFormCustom, SitefinityWebApp

Regards,
Sabrie Nedzhip
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 19-Mar-2016 00:00

Hello Sir,

I tried above changes,but it also not working.see  error.png and setting.png. 

Posted by Community Admin on 24-Mar-2016 00:00

Hello Rupali,

Can you please make sure you build the project in Visual Studio? Then Sitefinity should be able to successfully resolve the custom control you try to register.

Regards,
Sabrie Nedzhip
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 12-Apr-2016 00:00

Thank you for reply. Captcha working now.

This thread is closed