We've moved discussions to Discord

form errors with turbolinks

Pablo Soldi
Hi, I am one of those guys who had been working with rails for some years... but at the same time all my projects were created with --skip-turbolinks by default :P 
I know my question may be a bit silly, but I can't find a similar error-solution to my problem.

I have the index screen of my site, with all the information and at the end of the page there is a form to subscribe to a newsletter. As you can imagine, it's a page in which you need to scroll.

After submit the form, with an error (a duplicated email for ex), turbolinks is reloading the index page but the scroll returns to the beginning of the page. 

What would be the best way to indicate to move the focus to the form?

Notifications
You’re not receiving notifications from this thread.