Skip to content

How to have inputs with array value #847

Open
@RomainGoncalves

Description

@RomainGoncalves

Hi,

I'm not sure if I'm clear so let me show an example. In HTML I can do this:

First user:
<input type="text" name="users[0][name]" />
<input type="text" name="users[0][age]" />

Second user:
<input type="text" name="users[1][name]" />
<input type="text" name="users[1][age]" />

Once submitted that form will send data as an array.

How can I reproduce that with Form Builder?
I have a form right now that creates a new input group when a button is clicked. But I don't know what name to give these inputs. Is there a trick already available?

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions