I have a very complex form with lots of javascript, lookup rules, and some field rules.
On load, my form scrolls down to an email field (even though the first section contains an email field), then to a date field. I wonder if it has something to do with javascript checking but I would like to form to stay put at the top if possible.
I found this question that seems to be dealing with a similar problem but he just had a long description which the form scrolled past to the first available field. The code didn't work for me:
Anyone have any idea what I can do to fix this? The email field it scrolls down to is managed by a lookup rule (entering ID number in the second section will fill out the personal info such as first name, last name, and email in the third section), and so is the date field. There are required fields before these two so I am puzzled as to why it is scrolling past them.
Thanks!