Here, I opened the dialog of 'answer' node.
I would like to get the name value of 'comment' node in the flow (which is 'chocolate')
and put it into the name of 'answer' node.
I'm trying to type a specific file path string into node A and get that string in node B, to find a specific file using that path. And because I'm trying to use node A in other flows as well, it has to be separate node.
Do you think there's a way to set global variable over this entire node-red editor, then?
In general nodes re expected to be independent - and scoped locally. However if both nodes are "yours" and part fo the same package then they can indeed share a scope, or you can use a config node which appear as a sub level config panel that your other nodes can also reference - see Configuration nodes : Node-RED