I have a button that I’m using for a dynamic collapse. I would like to have the button change from something like “Open …” to open the collapse region to “Close …” to close the collapse region. So basically I’m looking for a way to change the button text based on the open or close status of the collapse region.
Yep, that can be done. Do you have a variable which is storing the state of the dynamic collapse? If so, use the Inner Text dynamic attribute to set what it should be and you can have a ternary condition to say ‘Open’ or ‘Closed’ based on the value of the variable.