Forums

How to return focus to specific area of the form

ctrlmedia 03 Dec, 2014
Hello again,

I have another question. I have one long form which will be saved at different stages and then returned to the form to continue. I would like the page to focus on the area that they last saved it at - is this possible? Does anyone have any ideas?

I thought this would help http://www.chronoengine.com/forums/posts/f2/t90734.html but I couldn't get it to work?

Any help would be much appreciated.

Regards
Mark
GreyHead 03 Dec, 2014
Hi ctrlmedia,

If it's a long form then I would always break it into separate pages if I can and save after each page.

How do you know where they have last saved at present?

Bob
ctrlmedia 03 Dec, 2014
Answer
Hi Bob,
I just solved it as I was writing this reply.

I created a hidden input which was changed depending on what part of the form the user was using (with an element id) before save, then the redirect adds it as a parameter then jquery takes it and scrolls to that ID.

A bit long winded but it works for me.

Cheers
Mark
GreyHead 03 Dec, 2014
Hi Mark,

If it works that's perfect :-)

Bob
This topic is locked and no more replies can be posted.