+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Navigation Widget and Validators

Navigation Widget and Validators

3 posts, 1 answered
  1. Rico
    Rico avatar
    88 posts
    Registered:
    30 Aug 2012
    17 May 2013
    Link to this post
    Hi there,

    I have a custom widget with validation controls. If by chance the validators are active (user tried to submit some information with invalid data) but then decides to abandon what they were doing on the widget and goes up to navigate away to another page (via the Navigation Widget) -- the form validators are preventing the page redirects with in the navigation control.

    I would have expected a property on the Navigation Widget to 'ignore' validation rules (CausesValidation = false) or something like that on it's onclick event.... Can you please provide a solution to how this can be resolved?

    Thanks!
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    19 May 2013 in reply to Rico
    Link to this post
    Hi Rico,

    Would it help if you use the ValidationGroup property on your custom widget validators?

    Kind regards,
    Daniel
    Answered
  3. Rico
    Rico avatar
    88 posts
    Registered:
    30 Aug 2012
    21 May 2013 in reply to Daniel Plomp
    Link to this post
    Hi Daniel,

    Thanks for the suggestion. I made the necessary changes, and the behavior I was looking for appears to be working now.

    Cheers!
3 posts, 1 answered