How to create button text change on click kodular?

Hello everyone, I have a button that is calling a script in the web viewer.

I would like that when I click on the “Add Items” button the text of the button changes to “close”, and when I keep clicking on this button, it alternates between the two texts.

I just need the button to switch between the two texts on click.

tanks for help!

In the button click please use elseif condition

If text of the button = ed1
Then do this work and chage text of the button to eg2
Else if text of the button = eg2
Then do this work and change the text of the button to eg3
.
.
.

And so on

1 Like