- Delete everything except the form node and SQL node & 2 debug nodes
- Connect the form to 1 debug and to SQL node
- Connect SQL output to 2nd debug
- Setup the SQL node to use parameters
- Enter test values into the form and submit (so you get form values in debug panel)
- Use the copy path from the debug msg to populate the parameters
There is no need for global context.
See this post for an example of how to do parameters
Copy path...
There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path to any data item.
Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.