Activating a button with a trigger


I’m creating a HumanUI window which allows to choose the material for the building design. Depending on the material chosen, this changes the minimum and maximum values of some number sliders used as an input for the design. Although this works perfectly fine in my grasshopper canvas, in the HumanUI interface, the sliders’ maximum values don’t update automatically, I have to go on my canvas and change the value for it to update. However, if I use a “trigger” component this will update the ranges of the number sliders. Therefore, I was wondering if anyone had a script that would make a button activate the “trigger” component that I could then put in my HumanUI interface to update the number slider range.

Thanks in advance.