Date:  10/07/2013 09:13:11 AM Msg ID:  004626
From:  Steve Moore Thread:  004625
Subject:  Re: problem with formfield function and hash
I solved this problem with an onload javascript function with the hash passed as a hidden argument from the form and copied into the js script on read.
 
If there is another fix let me know for future reference. The above works but its is a bit messy.
 
 
Sent by Steve Moore on 10/07/2013 08:50:21 AM:
I am having a problem with the formfield function whenappending a hash to the submit.
 

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.

onsubmit="location.href=this.action+'#FC18';return false;"

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?