Updating label on switch toggle

Hello !

I’m new to Wappler and a bit lost for now.
Searching through the forum and docs didn’t answer my questions but I might just search with the wrong terminology…

  1. I’m trying to understand the difference between dynamic events and dynamic attributes.
    I couldn’t find anything relevant for the latter in the documentation.
    Did I miss something ?

  2. I have a switch toggle element.
    And I would like to edit the label attached to it when enabled.
    https://www.screencast.com/t/h8pNtdZS9Fy

I managed to add a “rule” to update an input when the switch is toogled on : https://www.screencast.com/t/fevGqvPD
But I can’t figure out the syntax to make it work on a label, what kind of language is it ?

Plus that would be only half of the job done as I guess I would have to revert the original label value when the switch is toggled off again. And I have no clue on how to do that.
My guess is that I would need to use jquery somewhere…

All suggestions and ressources are welcomed.

Thank you very much for your help ! :slight_smile:

Geoffrey

Community Page
Last updated: