Multiple Widget Blueprints with a Triggerbox

Hi, I am a new in Unreal Engine. I am trying to popup widget blueprints on the screen when the player enters a triggerbox. It works with one widget.

Now what I’m trying to do is to popup different widgets when player enters the triggerbox according to a string that changes during gameplay, but I couldn’t figure out how to do the selection between the widgets. I tried to use switch on string but I could’t make it. Any idea to solve this?

There are many ways to do this. For example, use the map:

image

If you need to send some value with constructing, use the switch:

My Products

Thank you. I used the map one and it worked.