Hey all,
I have a form with required text fields and such. When the user hits submit, they scroll down a bit and the text fields are not displayed on the screen. If they left the fields blank, they give the message I entered in the validator, but there is no alert to the user. So it appears that they click the button and absolutely nothing happens. If they don't scroll up and see the red warning messages, they may not figure out what the problem is.
Is there a way to either give them an alert window, or move the focus to the top of the page?
I'm thinking I can make a custom validator and have the same behavior as there is now, but also add a "response.redirect(#top)" or something along those lines, right?
Is there an easier way? Thanks
I have a form with required text fields and such. When the user hits submit, they scroll down a bit and the text fields are not displayed on the screen. If they left the fields blank, they give the message I entered in the validator, but there is no alert to the user. So it appears that they click the button and absolutely nothing happens. If they don't scroll up and see the red warning messages, they may not figure out what the problem is.
Is there a way to either give them an alert window, or move the focus to the top of the page?
I'm thinking I can make a custom validator and have the same behavior as there is now, but also add a "response.redirect(#top)" or something along those lines, right?
Is there an easier way? Thanks