Forum OpenACS Q&A: ad_form and anchors

Collapse
Posted by xx xx on
I would like to use an anchor (<a name="x">), that tells ad_form where to go on a page after it switches from display to edit mode. So this is before submitting.

What I do is: I use a form (ad_form) that starts in display mode. When I click on the button it switches to edit mode as expected.
But, the form is at the bottom of a long page. After the switch to edit mode has been made the browser shows the top of the page and not the form which is way lower on the page.

- Do others notice this too or is it just me?
- How can I prevent this or how to redirect to the correct location on a page while switching modes? Can I use an anchor somehow?
- Where or how is switching between modes done in the code?

Thanks for any help. I'm using .LRN 2.1.3