How To | Making a button invisible using Text Controller

Learn how to hide a button Text Controller in Q-SYS Designer.

Updated at February 26th, 2024

Procedure


In some instances, you may need to temporarily remove controls that will be added back in later. Use the steps below to use a Text Controller component to make a button disappear using IsInvisible.

  1. Drag the Text Controller component into the design.
  2. Add 2 controls to the Block Controller.  Set the control to Toggle.
  3. Name one button “Btn”, and the other button “Invisable”
  4. Open the script editor and copy this code snippet into the  script editor. 
Controls["Invisable"].EventHandler = function()
  if Controls["Invisable"].Boolean then
    Controls["Btn"].IsInvisible = true
   else
    Controls["Btn"].IsInvisible = false
  end
end