Hello,

I have been trying to find a way to know when does any section expandable is expanded or not, so i have tried to clone the widget and tried to insert document.getelementbyid("buttonexpanded").click() when I expand on the original javascript of the widget in order to send a trigger but it seems it cant detect the button, guess i cant inject an element ID on the javascript itself... so is there anyway to warn me that any section got expanded?

thank you

Hi normann, you can use the OnToggle handler action in the Block's properties panel, see the picture bellow. If I got your question, that might help.


I've attached a sample to this comment.

thank you but darn the one you showed me is the OutsystemsUIMobile section Expandable the one im using is for web the one in WebPaterns and it doesnt have event handler :(



Hello,

I'm guessing that the button ID "buttonexpanded" is not correct. The ID's in outsystems are automatically given by the platform to the elements, to try to ensure uniqueness. If your button name is "buttonexpanded", than try the following: "document.getelementbyid("+ buttonexpanded.Id +").click()".

Aux: https://www.outsystems.com/forums/discussion/31456/ids-on-web-blocks/

Cheers,

Miguel



Miguel Marçal wrote:

Hello,

I'm guessing that the button ID "buttonexpanded" is not correct. The ID's in outsystems are automatically given by the platform to the elements, to try to ensure uniqueness. If your button name is "buttonexpanded", than try the following: "document.getelementbyid("+ buttonexpanded.Id +").click()".

Aux: https://www.outsystems.com/forums/discussion/31456/ids-on-web-blocks/

Cheers,

Miguel



already tried that but thank you