Getting a string from a user either cia a popup or via console

Hi.

I need to get a string of characters representing data I need from the user. How can I allow a user to input a string either via the console or via a popup? I do not want it in realtime, key after key, but in one chunk after the user hitting enter. I also want it to end up as a DString, but I can do the conversion myself if needed. How can I do this?

Thank you for your help.

I ended up using UFUNCTION(exec) and set it via the command line.