Copied to clipboard

Flag this post as spam?

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


  • Chandima Jayanath 12 posts 32 karma points
    May 20, 2010 @ 15:02
    Chandima Jayanath
    0

    How to handle customized error messages

    Umbraco system doesn’t allowed  to show customized error messages. any suggestion please

    My environment is:

    Umbraco version: 4.0.3

    asp.net: 3.5

    Windows: Windows2003

    IIS: 6.0

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    May 20, 2010 @ 15:03
    Sebastiaan Janssen
    0

    What do you want to customize about which error messages?

  • Chandima Jayanath 12 posts 32 karma points
    May 20, 2010 @ 15:12
    Chandima Jayanath
    0

    As a example, if i need to select URL for external site, i select 'Link Type' as External URL, but accidently I select Internal URL value for it, i need to show error message like "Your URL value is incorrect...." 

    Is this possible to do? Please clarify

    Thanks!

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    May 20, 2010 @ 16:49
    Sebastiaan Janssen
    0

    You could PROBABLY do it by updating the speechbubble from some code, but it's not something that is very easy and sometimes it is just impossible to update that speechbubble I think. I don't think It was really made with much customization in mind.

  • Chandima Jayanath 12 posts 32 karma points
    May 21, 2010 @ 07:22
    Chandima Jayanath
    0

    Thanks for the answer.... !

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    May 21, 2010 @ 08:30
    Richard Soeteman
    1

    HI,

    I suggest you use a regular expression to validate the field. If that's not possible I would create a custom datatype based on a usercontrol (More info on the Nibble Blog) And use a validator in that usercontrol that shows the error message. When you use the spoeechbubble/event method the data is already saved before the message is shown.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft