I am using the following onsubmit to add a jump hash so that the target page where the form is submitted scrolls to the edited item in a list using a target id.
This works as expected as far as the jump is concerned. However, all the formfields return empty values. As soon as I remove this function, all formfields work as expected but of course there is no autoscroll.
If I set the return value to true the values are passed but there is no hash so no scroll.
Any idea why this is and what I can do to work around it?