Running Multiple Queries on Button Click

Hey,
so i think it would be acool addition to be able to run multiple queries on a button click.

Hi @lys123, this is totally feasible. All you need to do is create a JS query, and use .trigger() for the queries that you are looking to run. EX: query1.trigger(); query2.trigger(). Then set your button to run the umbrella JS query. You can also set a query to trigger additional queries on success:

Here is some more information on triggers in Retool’s docs: https://docs.retool.com/docs/scripting-retool

3 Likes

Good idea! Thanks

1 Like