Hi @Thimo
Would it be possible to add a workflow action that causes the value of the toggle to change - e.g., if I wanted to trigger a toggle event in a workflow when a group was clicked? Currently, if I use the existing bubble workflow action ‘Toggle’ on the Toggle/Switch item, it does not work.
thanks
Jeff
There is actually no ‘toggle’ action provided by the plugin, maybe you are confusing the ‘toggle’ workflow action from Bubble to toggle (hide/show) an element?
The toggle plugin actually updates automatically based on the “Checked?” value:
So, you can use for example a custom state or maybe even a data item to provide this value. That way you can change the value of the toggle.
However is this is not an option for you, I did just push an update (1.1.0) that, once you upgrade, adds a workflow action to set the value of the toggle programmatically
Using the toggle in a popup - the toggle is set to display the popup’s thing. Also in the popup I have a repeating group and an “add thing” button to create a new thing for that repeating group, and add it to the popup’s thing.
^ with that setup, Given I have opened the popup and enabled the toggle (which I plan to save the value of when I click the “save button on the popup”) When I click the “add thing” button to create a new thing that is created and added to the popup’s thing Then the toggle value is switched back to off
If the toggle defaults to ‘unchecked’, this value is probably set to ‘no’ in your app. Please make sure the value for ‘checked?’ is the value you want it to be.