i have a page with a webform in the left sidebar and one in the right sidebar. this page loads fine the first time, at the top. i'm using the webforms to filter a list of data. the webform on the left is long enough that the user has to scroll down to fill in a field or three and click on the submit button. once done and the filtering is done, what appears to be the finished page flashes by (i recognize it), fully loaded with the filtered list of data, but then that is cleared and the page presented again, but one is at the bottom of the page. this happens even if there are not enough items in the list to fill the page.

it's as if something is telling it to go to the bottom. i've tried some things to simply tell it to go to the top, but they have been javascripts and i don't know what i'm doing with them...or drupal much, either.

interestingly, when i use the webform on the right, the use of which does not require me to scroll down to enter the fields and click submit, i'm returned to about the middle of the page rather than the bottom. it's still not the top when i expect it to be.

i don't know if it's webform. i use the data provided by the user via the webforms to match records in the list and display the ones that match. i keep their entered data if the user goes to another page in the site so that he/she can return to the list page and the same, filtered list is displayed, from the top. that works fine. therefore, i conclude that it is not the displaying of the list that is the problem, it is having just clicked submit.

the website is http://www.theloadpost.com/dev/tlp1/node/3 OR ...node/2. it's under construction.

Comments

mwease’s picture

Category: support » bug

Changed this to a bug report. i have the same issue with other pages on which i use webforms. once the webform is submitted and i want to just issue a "success" message and stay on the same page/form, the page loads and is at the top, but then is re-written and goes back to the bottom of the webform where the submit button is (the form is long enough to require scrolling down to get to the submit button).

i LOVE webform, but i think that the "page" must has priority over where on that page the user is returned after submitting a webform on that page.

this is also a "slight" issue/problem with these same pages when there is a validation error on one or more of the fields. there is a flash and the user is returned to the page/form seemingly where he/she was at the bottom and cannot see the errors at the top. (i think webform puts the first bad field at the top, which would certainly be as designed, but maybe not the best -- i saw it 20 times before i just now realized why it might not be at the top of the page) therefore, there is confusion as to why he/she is (I am) looking at what was just submitted via the button and not something else.

a page where this problem shows up: http://www.theloadpost.com/dev/tlp1/node/29
mike wease

mwease’s picture

Status: Active » Closed (fixed)

never mind. i closed this issue. after running into something else wierd, i realized that there was something wrong with webforms i created and, i believe because Webform Block was also installed and enabled, a block was created for those webforms at create time and that was the problem. i had to delete the webforms and recreate them and put them into another block to get around the problem. i think it's a Webform Block problem, but it doesn't seem to work the way i remember. i have another pending question to the Webform Block maintainer about that (http://drupal.org/node/572118).

thanks for all the help, folks.