Closing a pop-up scorecard using a dedicated button

I have a scorecard that opens in a pop-up window based on an interaction with another scorecard. Everything works well, but I would like to add a “close” button within the pop-up window (on the scorecard header) to close the pop-up, rather than forcing the user to click outside of the pop-up in order to close the pop-up window. Is this possible? I tried adding a “Close” button using an HTML Label and closing the pop-up by referencing its ID but that did not work.

It is possible to close the pop up from a button. All you need to do is add the following script to the click action of the button you added to close the window:


dundas.context.closePopup();

1 Like