Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eise van der Spoel 10 posts 90 karma points
    May 05, 2014 @ 14:35
    Eise van der Spoel
    0

    Cancel save if condition in custom usercontrol failed

    Does anyone have a clue how to cancel a submit from a custom validation on a custom usercontrol.

    Example:
    When i check the 'ispostback' from a custom user control I want to check if the value is 1, if it is not; cancel the event and show a text balloon with a custom message.

    I know there is a mandatory checkbox and 'validation: ValidationProperty' but I want a custom validation and when it fails cancel the save.

     

    Umbraco: 4.9.1 (yeh i know update nd stuff)

Please Sign in or register to post replies

Write your reply to:

Draft