This is a migrated thread and some comments may be shown as answers.
Displaying RadCaptcha error messages
9 Answers 82 Views
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 14 Jun 2011, 07:00 PM
Hi,
I am using a ValidationSummary to display the RadCaptcha error messages along with the other controls on my form.  But, when I set the ErrorMessage property of RadCaptcha, the error message also always displays right above the RadCaptcha control on the page.  Is there a way to turn that error message off so it only displays in the ValidationSummary at the top of my page and not right above the component itself?  I'd rather not show 2 identical error messages on the page in different places.

Thanks,
Tim

9 Answers, 1 is accepted

Sort by
0
Accepted
Pero
Telerik team
answered on 15 Jun 2011, 09:00 AM
Hello Tim,

Use the RadCaptcha.Display property to control the display behavior of the error message. Setting it to None will always hide the error message.

Regards,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Tim
Top achievements
Rank 1
answered on 15 Jun 2011, 11:48 AM
Thanks Pero, that's exactly what I needed.  Thanks for your help!
0
Lucania
Top achievements
Rank 1
answered on 16 Jun 2011, 02:20 AM
A bit of an extension to the first question, when I use Validators, I set the ErrorMessage to something pertinent, and the Text to "*" (asterisk). This way the ValidationSummary displays the message and a * is displayed next to the offending field. It would be nice if this was possible with the RadCaptcha. Perhapes the addition of ErrorText and ErrorTooltip properties to mimic the standard Validator properties?

Regards

ROSCO
0
Tim
Top achievements
Rank 1
answered on 16 Jun 2011, 12:05 PM
I agree with the poster above.  I too like to put an asterisk beside the field and then display the error message in a ValidationSummary and found that RadCaptcha was unable to do that.  Additionally, I noticed that the textbox of RadCaptcha does not have a FocusedStyleProperty like the RadTextBox does.  I like to change the background color of a textbox when the focus is on it, but am not able to do that with the RadCaptcha textbox.  That might be a nice addition to have as well so that you don't have to use the ValidatedTextBoxID property and validate a separate RadTextBox instead of using the textbox built into RadCaptcha.

Thanks,
Tim
0
Pero
Telerik team
answered on 20 Jun 2011, 12:33 PM
Hello Guys,

Thank you for your suggestions!
I logged them in our PITS where you can track their progress and have the chance to vote for their implementation. We will do our best to implement them for some of the next releases.

1. ErrorText
2. ErrorCssClass and FocusedCssClass

Kind regards,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Lucania
Top achievements
Rank 1
answered on 21 Jun 2011, 02:20 AM
Cool, thanks Pero.

I had another thought about this - if I'm using ValidatedTextBoxID to validate using my own text box, it would be nice if the ErrorText was displayed next to the text box, as that is where the UI action happens. Would it be possible to have a CaptchaValidator control that has a ControlToValidate property that links to the RadCaptcha control? A lot more work for you guys, but it would make the validation totally configurable, which is a Good Thing.

Or maybe it could be done with a CompareValidator?

ROSCO
0
Pero
Telerik team
answered on 24 Jun 2011, 08:02 AM
Hi ROSCO,

Yes, the error text could also be displayed next to the ValidatedTextBoxID. I updated the PITS issue to include this feature also. The RadCaptcha can validate any  control that implements the ITextControl interface simply by setting the ValidatedTextBoxID, so implementing ControlToValidate would be a redundant functionality.

Regards,
Pero
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Jon
Top achievements
Rank 1
answered on 06 Sep 2012, 06:12 PM
I'm having the same issue - looking to display a text message in the summary, along with an asterisk next to the text box when the user enters an invalid captcha code.  Is there a workaround for this? 
0
Ryan
Top achievements
Rank 1
answered on 10 Sep 2012, 01:25 PM
Thanks your help.... I am fortunate to be here guys.. RadCaptcha is so easy to get on your website.

silverlight development | silverlight developers

Asked by
Tim
Top achievements
Rank 1
Answers by
Pero
Telerik team
Tim
Top achievements
Rank 1
Lucania
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Ryan
Top achievements
Rank 1
Share this question
or