Limit typeOptions: multipleValues amount?

Hi team

I’m developing a custom node and I want to include a button to enable a user to add additional fields (limited to 3 additional fields).

So far, I have created a UI object of INodeProperties type/interface; this object contains the properties type: 'fixedCollection', and typeOptions: {multipleValues: true}

This allows me to add additional user input fields at a click of a button. However, I would also like to limit the number of additional inputs that the user can create to 3. Is there any way I can do this?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @kc_360dialog,

This is not something we have to handle internally when making nodes before and it doesn’t look like we have an option for this.

The best I can think of would be to add a notice to let the user know that only 3 items will be used then in the code only process the first 3.

Thanks for the clarification Jon - guessing there are no plans in the pipeline for this feature either?

Hey @kc_360dialog,

It is not something I have seen on the list sadly.