Get value of another node from a dialog of a node

Hi,

I was wondering if I can get value of node B in a flow from a dialog of node A.

For example,


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.

Is there any way to do that?

Thanks in advance!

I don't think that is possible. Why do you want to do that?

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?

Yes, a global variable should do what you want.

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

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.