Running script on each selected row

Hey all! :wave:

I want to trigger a query on each selected row on a text field.
I have a table where modules are displayed with each an option for a required module.

The text field should print out if the module on the selected row has any required linked to them like seen in the code below.

The data should be refreshed each time another row is selected and loaded in the text field below.

The query works, but only once until run again.
Can I make it trigger on each row?


Hey @FlorVK! Welcome to the Retool Community :slight_smile:

How are you currently triggering query25? It looks like it's a JS query, which means it can only be triggered manually (it doesn't automatically check for updates before running).

Do you have an event handler on your table to trigger the query?