Skip to content

Howto programmatically control the steps component #7278

Closed Answered by cmcclung-ANGENG
cmcclung-ANGENG asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I got it to to work.

I ended up using variables.

so the component looks to the variable the query updates and the js with the interval is in a seperate query.

e.g
steps component current step = {{variables.stepsNumber}}

JS query:
variables.stepsNumber++;
return variables.stepsNumber;

Then inside another JS query https://docs.tooljet.com/docs/how-to/run-query-at-specified-intervals/

and run that JS query created above when required.

I found that the clear interval had to happen in another query though.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cmcclung-ANGENG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants