How to call a function on onSelect or onChange events in the dropdown of a node

Describe the issue/error/question

I have created a node and added a dropdown as a property of the node. So when the dropdown value change I have to call another function and display a new dropdown under it. Can anyone help me with this?

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]:

Hi @AnjanaSAcroUser,
you can use loadOptions to achieve this. Have a look at our Supabase implementation for reference.

The second loadOptionsDependsOn will reexecute the loadOptions every time the property tableId changes.

1 Like