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...."
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.
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.
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
What do you want to customize about which error messages?
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!
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.
Thanks for the answer.... !
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
is working on a reply...