Hello,
While studying Notion’s node I found an interesting syntax:
I failed to find any documentation for it but after looking at n8n’s code I understood that it’s a special syntax for selecting sibling parameteres n8n/packages/workflow/src/workflow-data-proxy.ts at a56d6ab94627902441f86046c60756c464589764 · n8n-io/n8n · GitHub
However it doesn’t seem I can use it for visible items in collection, right?
I right something like this for my fixed collection options and it doesn’t seem to resolve ‘default’ for Field value:
{
displayName: 'Field Name or ID',
name: 'key',
type: 'options',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getWritableFields',
loadOptionsDependsOn: ['database'],
},
default: '',
},
{
displayName: 'Field Type',
name: 'type',
type: 'hidden',
default: '={{$parameter["&key"].parseJson().type}}',
},
{
displayName: 'Field Default Value',
name: 'defaultValue',
type: 'hidden',
default: '={{$parameter["&key"].parseJson().defaultValue}}',
},
{
displayName: 'Field Value',
name: 'value',
type: 'string',
displayOptions: {
show: {
type: ['text'],
},
},
default: '={{ $parameter["&defaultValue"] }}',
},
Also I’d like to use it inside displayName but that also doesn’t seem to resolve
Are there any source where I can learn more about it? Thanks in advance for any tips
