Streaming live at 10am (PST)

Toggle text values with interactions

Is it possible to toggle text values with interactions?

Example: Toggle “Show/Hide” text on click.


Hi, you cannot change the text values using the interactions, but you can add a custom click event on the element you want to process code to change the text values of another element. For example, if you have a button with unique id “button1”, and you want to change the text for the element with unique id “target1” and have the code check first if the text for the target is set to Hide or Show when the button is clicked, and change those values depending on the state of the text label, you could past the following function to your Before Body panel of the Custom Code section of Site Settings.


    $( "#button1" ).click(function() {
      if ($("#target1").text == 'Hide') {
        } else {


I hope that helps you. Cheers !