Displaying RadCaptcha error messages

10 posts, 1 answers
  1. Tim
    Tim avatar
    3 posts
    Member since:
    Jun 2011

    Posted 14 Jun 2011 Link to this post

    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
  2. Answer
    Pero
    Admin
    Pero avatar
    1156 posts

    Posted 15 Jun 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tim
    Tim avatar
    3 posts
    Member since:
    Jun 2011

    Posted 15 Jun 2011 Link to this post

    Thanks Pero, that's exactly what I needed.  Thanks for your help!
  5. Lucania
    Lucania  avatar
    65 posts
    Member since:
    May 2011

    Posted 15 Jun 2011 Link to this post

    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
  6. Tim
    Tim avatar
    3 posts
    Member since:
    Jun 2011

    Posted 16 Jun 2011 Link to this post

    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
  7. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 20 Jun 2011 Link to this post

    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.

  8. Lucania
    Lucania  avatar
    65 posts
    Member since:
    May 2011

    Posted 20 Jun 2011 Link to this post

    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
  9. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 24 Jun 2011 Link to this post

    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.

  10. Jon
    Jon avatar
    4 posts
    Member since:
    Sep 2012

    Posted 06 Sep 2012 Link to this post

    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? 
  11. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jun 2012

    Posted 10 Sep 2012 Link to this post

    Thanks your help.... I am fortunate to be here guys.. RadCaptcha is so easy to get on your website.

    silverlight development | silverlight developers

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017