I have the following in my view at the moment:
@Html.PasswordFor(m => m.Password, new { Title = "Passwords must be at least 6 characters long" })
Works fine, but what's nagging at me is that it would be really great to be able to get the tooltip in the view model as an attribute, as all the other info is there, and it seems messy to put it in my view.
Is there any way that I can pull the value of the attribute through so that my code is something like:
@Html.PasswordFor(m => m.Password, new { Title = m.Password.Tooltip })
Please note: it's not a validation message that should show / hide based on input, think of it as help text.