I have a text element on the page. I also have a button on the page.
Each time the button is clicked I would like to have the text element display the next fields item (whatever that text item is).
For example the field has these items:
If I click on the button once, the text element would display Walk, If instead I clicked the button Twice the text element would display Jump and keep cycling through. with each button click.
Also, I created a custom state on the page called feildIndex (which is a number) then on the button workflow I set state to value index’s fieldIndex +1. Then another text elements with a dynamic index’s fieldIndex and this seems to increment each time I click the button but Im lost on how to connect these to cycle/iterate through a field in the database).
Can anyone assist?