Probably a simple question.
I have a toggle switch, and i want to ON CHANGE, UPDATE (supabase)column with the value of the toggle switch.
Where do I find this… (Initial state value is coming from the database)
Probably a simple question.
I have a toggle switch, and i want to ON CHANGE, UPDATE (supabase)column with the value of the toggle switch.
Where do I find this… (Initial state value is coming from the database)
Hi @Kawwl
Here’s a video on the topic: Video for Karl - toggle — Tella
I used the REST API plugin to demonstrate because that’s what I had in my project but the same logic would apply with the Supabase plugin
Hey Joyce! First, thanks for the great video. I think i jumped the gun on my request. The plot thickens…
The toggle values is in a dynamic table, so maybe this needs more layers.
So initital state = item.toggle (== false).
When toggle switch on .item is switched then UPDATE supabase column to item.togglevalue.state.
BUT i just found the solution as well:
event.value (even though it is empty) setting that to the UPDATE call, actually changed the value accordingly… I was mislead by its empty state.