Copied to clipboard

Flag this post as spam?

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


  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 12, 2011 @ 09:35
    Ove Andersen
    0

    Suppress "Datatype saved" popup

    Is it possible to suppress the datatype saved popup when saving a custom datatype?

    I do a check for valid values and nothing is saved if the form doesn't contain valid values.
    But the popup is still shown.

    Or is there a BeforeSave event that I can hook into?

    I could also use a CustomValidator, but that seems a little "hacky".

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Apr 12, 2011 @ 09:53
    Richard Soeteman
    1

    Why is a customValidator Hacky? A vaildator validates values, works fine by me :) I've used those to validate some custom properties as well on a doctype and then you get the nice Umbraco Error messages, maybe you get the same using a custom validator on a custom DataType.

    Anyway  I find it less hacky than your other option

    Just my 2cts

    Cheers,

    Richard

  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 12, 2011 @ 09:57
    Ove Andersen
    0

    Yeah. You are probably correct. I just don't like to scrap and redo code that works, just not perfectly :-)

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies