I have a contact form that has some mandatory fields and I have use JS validation to check the mandatory fields. Now if the validation failed the error should appears in red on the top of the screen but currently on submit the screen is not scrolled to the top and shows the same position of screen.
How can I show the top of the screen on validation failed?
My js is something like this
if(code === '')
{
Appery("lblRequiredFields").text('Please enter numeric data.');
return;
}