Skip to Content
0
Former Member
Oct 27, 2010 at 01:18 PM

Scroll to Error message

30 Views

Hi,

My form has many fields. When I get an error I want the screen to set focus to top of page. I even have message area at the top. but the focus is not going to top of the page.

I tried below methods.

1)Created an event(setFocus) in compcontroller and calling this from a method(focustop) in comp controller. When I get an error I am calling focustop method .

2) I tried the same but this time create an event and method in interface controller.

both are not working. not sure how to proceed. any thoughts?

Thanks,