Next.js Discord

Discord Forum

Multiple inputs with the identical input names

Unanswered
Ghost ant posted this in #help-forum
Open in Discord
Ghost antOP
How can we manage numerous inputs with identical names in server actions without iterating through each one individually?
Here is an example of what I am receiving on the server
const formData = [   
     { name: 'name', value: '...' },
    { name: 'lang', value: 'Arabic' },
    { name: 'level', value: 'Native' },
    { name: 'lang', value: 'English' },
    { name: 'level', value: 'Native' }
  ]

0 Replies