How do I fix this redirect issue?

I made a table action that redriects to a new page. The problem now is the page won't load--as soon as it does, row 0 is selected and it redirects. I can't figure out how to modify the table action to stop the redirect--it redirects before I can even open the inspector!

Help!

Dear @BubbaHoTep,
Could you please provide a screenshot or a demonstration video of the issue you're facing? This would greatly assist me in understanding and addressing your concern more effectively.

I can't attach files, but:

So I think what's happening is that i put a Go To Page action on Event Handler -> select row, so when the page loads it selects the first row and redirects. That's not what I wanted lol.

Wow this embed thing is really messing with me trying to post a video, but try this... just remove the newline and make it a URL.

/scl/fi/1ecjvcs5ohgfqhs6ww7ri/retool.mov?rlkey=xy5i8uf6yibtkmf5746ypldm9&st=tkrd8hkk&dl=0

@BubbaHoTep please make sure that you are using the Click Row Table event handler instead of Select Row. Select Row triggers on page load, whereas Click Row does not.

To see this in action, please import and checkout the sample app that i have attached. I have placed a table in the page called "Page with table". On that table, i have added both the event handlers: 1.) Click Row, and 2.) Select Row. You'll notice that only Select Row gets triggered as soon as you enter that page, but not Click Row.

How do I fix this redirect issue?.json (75.1 KB)

Bonus tip: Consider using https://loom.com for sharing video screen recordings.

Hope this helps.

Best,
Abdul Wasae
Toolshed - Hire Retool Developers

Thanks for the detailed explanation.

Is there any way to stop it from doing that so it can be fixed, or just recreate it all?

@BubbaHoTep like i said in my previous reply, you likely have added a "Select Row" event on your table. Just replace it with "Click Row". Your problem will go away.

Don't forget to mark the answer as "Solved" to make it easy for other people to find the solution.

Thanks. However, I can't bring up the edit page/inspector AT ALL. What I showed in the video is in EDIT mode--I can't actually change it. When I try to load the page to change the triggers it just redirects.

That's a great point haha. I tried it myself and the following worked for me:

  1. Open app in edit more
  2. Press Command (Ctrl) + K or click the the search bar on the top
  3. Type the name of your table and press enter
  4. Type 'select in editor' and press enter

With these steps, even though the table will hide again, the inspector of the table will stay open on the right. This is your opportunity to quickly remove/modify the pesky event handler.

Hope this helps.

Hi there,

You can also try this workaround to step into a past version of the app from before the select row event was added. Once you find a version you like, you can make a small change (move a component back and forth) to save that version as the latest. Just be careful not to make any changes until you find a version that you are happy with