Hi,
I’m trying to build a custom node.
In the node, I have two input fields: A drop down list and a text field. I’d like to change the value of the text field when somebody selects a value in the dropdown (regardless if the user made any changes to the contents of the text field).
I’m able to listen to changed parameter values in a n8nExternalHooks javascript file, but I can’t seem to see how to change the value?
window.n8nExternalHooks = {
nodeSettings: {
valueChanged: [
function (store, meta) {
if (meta.parameterPath === ‘myDropDown’) {
// How do I change the value of parameter ‘myTextField’?
}
}
]
},
Maybe i’m approaching this the wrong way but some guidance would be greatly appreciated.
With kind regards,
Erwin