Dynamic number of input fields

Hi Knimers,

I would like to have a dynamic number of input fields depending on what the user selects. As you can see in the screenshot, e.g. the user selects 4, then the string inputs “Parameter Value” and “Parameter Path” should dynamically grow and shrink to 4 or whatever the user selects.

I’m currently trying with a loop, but that doesn’t work:

I would be happy if anyone has any ideas or solutions.

Best regards,

Martin