Cicode tag's name association

Greetings everyone,

I have a question about variable and tag associations.

For some context, I am working on a Highway tunnel control system and need to create a function that allows users to write directly on the variable message panels.
I have made a parametric popup with all ?LABELS? to the various objects in it, and a button that recalls a custom function, which opens a form window where the user can input custom text to display on the panel.

Here's my problem: I would like to pass to this function the name of the tag where the data from the form needs to be written, but using normal associations, it only sees the tag's current value.
I know that inside the Genies I can use " ' ' " to pass a constant to a function, which I usually use for the title of the popups, but I was wondering if there was another way for me to pass the tag's name instead of the value from within the popup.
All this is because I'm trying to keep everything as dynamic as possible and would really prefer not to add another field to panel Genie just to pass the tag's name.

As a reference, this is what I am currently using: FreeText_2(?ALFA_W?), "?ALFA_W? being the tag where I need to write the new text.
Inside this, I am using "TagWrite", hence the need for the tag's name.

If anyone needs any more information, feel free to ask. I know this is very specific.

Thanks to everyone in advance.