dhodgdon
Posts: 80
|
| Posted: 04/26/2005, 10:59 PM |
|
When I click the button to add or submit information on a form, I want to go to the top of the form. I tried setting bookmarks but the browser just jumps to the top of the page. The Return Page value for the button is blank, the Return Page for the form is the page it is located on. I tried various placements of #bookmark in these fields with no success.
Can someone point me in the right direction?
_________________
Regards,
David Hodgdon
|
 |
 |
Nicole
Posts: 586
|
| Posted: 04/27/2005, 4:19 AM |
|
Hello,
You can modify Redirect variable in After Update/Insert events and add a bookmark to it. Redirect contains a returns page name and parameters.
_________________
Regards,
Nicole |
 |
 |
dhodgdon
Posts: 80
|
| Posted: 04/27/2005, 5:15 AM |
|
Thanks Nicole,
Would the same hold true for the On Validate event because the same problem occurs there? This is what actually prompted the question because users were missing the error messages by not scrolling back down to the form and assumed the data was accepted. Normally, I redirect to a confirmation page when successful but this particular page allows the user to return back to the linked grid and edit other records.
_________________
Regards,
David Hodgdon
|
 |
 |
dhodgdon
Posts: 80
|
| Posted: 04/27/2005, 2:00 PM |
|
Okay, I'm unsuccessful.
I found where the redirect URL is built in the main code file for the forms Operation Method. I can alter that code to go to a bookmark if the form does not contain errors and successfully inserts or updates..
I still can't find a way or make anything work that takes the page to the bookmark when the form contains errors.
_________________
Regards,
David Hodgdon
|
 |
 |
Nicole
Posts: 586
|
| Posted: 04/28/2005, 2:42 AM |
|
I think you can add a bookmark via client side code. Create Insert/Update buttons onClick events and add bookmark to window.location.href (I haven’t tried this solution, it is only an idea)
_________________
Regards,
Nicole |
 |
 |
|