Forms Vallidation Scrolls Up
Hi Team Telerik,
We have a form located at the bottom of the page. There are validations for few fields. If those validations are not met, the validation need to fire. On button click, the validations fire correctly, but the page scrolls to the top of the page. By this, the user again has to scroll at the bottom, to reach the form and check the validation errors.
Please let us know how we can resolve this?
Regards,
Siddesh Kapadi
Hello Siddesh,
Have you created the form with the embedded Sitefinity form builder, or is this a custom form that you've developed from scratch? Can you also tell me a little bit more about you project?
Regards,
Stanislav
Telerik
Hi Stanislav,
We have created this by adding a new project FormsNotification, that allows us to handle submit events of the forms. We have to capture few data on submit of each form for our internal tracking purpose.
I have my manager's account as well, through which I can add a ticket and we give you the URLs as well.
In case of anything, please let me know.
Regards,
Siddesh Kapadi
Hi,
Try adding this to the OnClientClick event of the input button.
onClientClick="window.scrollTo = function(x,y) return true; ;"