Set value for "Run this Query Periodically"?

Is it possible to update the "run this query periodically" with a segmented control like [manual || auto]. This would allow me to set the query to run automatically when I wanted but to switch to manual when I didn't need it in real time. I don't see a boolean for it but I do note that "queryRefeshTime" goes to "" when "Run this query periodically" is deselected.

Hello, i think is not possibly to dynamically toggle that option, but a workaround could be to have two querys and a variable

query1 will have the "run query periodically" enabled, and in "on success" run your actual query and set a "only run when" variable match a value