This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Can I do something similar to: [ValidatePresence(errorMessage = "Enter an email you muppet."] ? Cheers, |
|
|
Hi Charles, At the moment you can only change the content of the built in validators by editing the resource file that ships with LightSpeed (check out the localisation sample for more information). We have been planning on adding the custom validation messages to LightSpeed 2.0 so I will keep you posted when this will be included in a nightly build. Thanks for your question, John-Daniel Trask |
|
|
Sweet, thanks JD.
|
|
|
Hi Charles, Andrew has added this functionality to LightSpeed and it will be available in the nightly build tomorrow morning. To use the custom text you would add a validation attribute in this manner: [ValidatePresence(Message = "Enter a {0} you muppet.")] Where {0} will insert the name of the property. I hope that helps, John-Daniel |
|
|
The {0} is optional btw. |
|
|
Super quick turn around... fantastic work. Shot Andrew. |
|