Copy link to clipboard
Copied
I'm trying to create multiple toggle buttons. When one toggle button is in the ON state, clicking on another toggle button should turn itself ON and the previous button OFF. This is working ok with 3 buttons but after working once I have to click on the button twice to get it to work again.
I'm using a transparent button on top of an image with two states (ON and OFF).
Do not use Toggle, but Assign command. Bit busy, this is more based on my intuition (created tons of advanced actions). You can check it out this way (think the Toggle causes the value to be wrong the second time):
Copy link to clipboard
Copied
You are going to need to post your Advanced Actions. You more than likely have a logic issue.
Copy link to clipboard
Copied
Hi, thanks for the reply. Here's the Advanced Actions for 1/3 buttons.
So basically, when one button is clicked ON the other buttons change the state of the related image to the OFF state.
It works great the first time I click each button, but thereafter I have to click each button twice to repeat the same action.
Copy link to clipboard
Copied
Do not use Toggle, but Assign command. Bit busy, this is more based on my intuition (created tons of advanced actions). You can check it out this way (think the Toggle causes the value to be wrong the second time):
Copy link to clipboard
Copied
I switched to ASSIGN from TOGGLE and it seems to be working fine - many thanks for the assistance.
Copy link to clipboard
Copied
Did you try the debugging workflow I suggested?
Copy link to clipboard
Copied
Yes I did.
Copy link to clipboard
Copied
Great!