I have a question about go to related record script question using FileMaker Pro v.6.

In my Group database form, I have a portal with the list of Users with a button that, when it is clicked, will go to the related User record in User database. This works perfectly in the desktop application.

When I port this page out to web via Instant Web Publishing, the button still works and takes you to the User databse, but it doesn't take you to the correct record, but just the first one.

Has anyone had this problem before? If this can't be fixed, is there a way for me to achieve same result in the web (hopefully using IWP) so I can click on a record in the portal to go directly to that record in another database?

Thank you.