Hi,
I have a strange problem, and it seems that this is pretty much the same as described here: https://stackoverflow.com...equired-after-upgrad
The problem is not that the validator does allow to submit when invalid data is inserted, but the error message is not displayed. The form is not submitted, but the user has no idea why.
The validators's CssClass property is set to "dnnFormMessage dnnFormError", and does not display the error message when it should (eg, a RequiredFieldValidator when the field is empty). For other validators on the same form, it works, for some not, and this seems not to be dependant on the validator's type, eg. it does not work for a RequiredFieldValidator, and I have two custom validators that I wrote by myself, it works for one but not for the other (both are the same validators).
When I use the developer tools and remove the "display:none;" part from the span element, the error message is displayed.
When I use another CssClass property (e.g. "NormalRed") it displays the error message, in this case in red letters, and even if I use "dnnPrimaryAction" it displays a blue button with the error message on it (which is a stupid idea, but it was just a test to find out what could be the cause of this behaviour). Obviously, it it not the validator itself, but the style class or some script that modifies the style class.
The workaround provided in the stackoverflow question works, but this can't be the proper solution. Any ideas?
(DNN 9.5.0 in my case)
Happy DNNing! Michael
Michael TobischDNN★MVP
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.