Dynamic conditional parameters

Hello everyone,
I have a problem and I do not know how to do it on n8n, I created a node for my api, and as you can see in the picture I have these two parameters that are filled by backend, so they are dynamic and never have the same values. but to get the value of the second I must know which value is selected in the first and with that value to make a request to the backend that returns the values of the second. Is there any implemented node that has the same logic to rely on or can someone help me.

Screenshot 2022-05-20 at 9.30.21 AM

Hey @endritgojani,

I was sure we did something like this somewhere but I can’t find an example node, @RicardoE105 is a wizard when it comes to nodes so he may know the answer.

@endritgojani reached out on Discord to ask about this.

Pointed him at the loadOptionsDependsOn property, that won’t run the loadOptions function until a specific variable is set. This value can then be loaded from within the loadOption function. A random example:

1 Like

I had just found one in the node properties and was about to have a play with it, Great work as always @pemontto :+1:

1 Like