Ionic Toggles Requiring Refresh After 1 Action

Hello all,
I think i’ve encountered a bubble plugin bug. I have an Ionic Toggle that changes a yes/no variable in a database. If checked, the boolean is yes. if unchecked, the boolean is no.
I have a text element to the left showing the value of the boolean (depicting the respective change in the Database). When interacting with the toggle for the first time, it will make the expected change in the DB i.e. if the boolean is yes, unchecking the toggle sets it to no; however, if I want to undo my action (set the boolean back to yes), checking the toggle doesn’t update in the db. The text above doesn’t update, and a refresh shows that despite checking the toggle, it did not check. After a refresh, i can perform an action(Check it), but the toggle doesn’t seem to work until another page refresh.

The gif below shows this behaviour (the mouse leaving the window is to refresh the page).
ezgif.com-video-to-gif

It’s possible that i’m also doing something wrong, So i’ve attached the screenshots of the (simple) workflows below.



Any insight would be greatly appreciated.

Edit: This issue seems to also affect other ionic elements, like the ionic checkbox.

You should check if your ‘Do when’ event is set to ‘Every time’ instead of ‘Once’.

1 Like

I had no idea that was an option, it works as expected now! Thank you.

This topic was automatically closed after 14 days. New replies are no longer allowed.