D
darrel
I have a form that has validators for each field. When I submit the form, if
the field is invalid, it shows an error next to the field. Works perfectly.
I also have a label at the top of the form that, if page is NOT valid, will
display. This message says 'there is a problem with the form, please fix the
fields below'.
What I'd like to do is have that message also state which of the fields were
invalid.
I can use a summary validator for that, but that is rather cumbersom in
terms of layout, so I'd like to write out my own message/formatting. Is
there a way to 'get' values from fields that weren't valid?
I imagine I need to call a function, have that function check that validity
of each field, and then have that return a string?
-Darrel
the field is invalid, it shows an error next to the field. Works perfectly.
I also have a label at the top of the form that, if page is NOT valid, will
display. This message says 'there is a problem with the form, please fix the
fields below'.
What I'd like to do is have that message also state which of the fields were
invalid.
I can use a summary validator for that, but that is rather cumbersom in
terms of layout, so I'd like to write out my own message/formatting. Is
there a way to 'get' values from fields that weren't valid?
I imagine I need to call a function, have that function check that validity
of each field, and then have that return a string?
-Darrel