Trying to display widget on boxtrigger

Sorry to ask such a basic question but this one has stumped me. All I am essentially trying to do is to get a widget to display when I enter a box trigger and disappear when I leave it. I can do it with text but can’t seem to get it working with a widget.

Thanks

Sorted it myself. Please close the question.