You are viewing limited content. For full access, please sign in.

Question

Question

Form scrolls down to first available field and neglects top content

asked on January 23, 2014

I have a form that contains a long description and instructions pertaining to the content of the form in an HTML block at the top of the form.  The trouble is, when a user first accesses the form, it will scroll down to the first available field to fill out, and neglects the top of the form, hiding its contents.

 

Is there a way to have the form displayed from the top regardless how far down the first field resides?  Perhaps through a focus change using javascript or something similar?

 

 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on January 23, 2014 Show version history

Try this JavaScript

 

$(document).ready(function () {
  $(window).scrollTop(0,0);
});

Or, you could make your long instructions a scrolling text box.

1 0
replied on January 23, 2014

This did the trick, thanks again Eric!

0 0
replied on January 23, 2014

You're welcome!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.