Skip to content

How to have inputs with array value #847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RomainGoncalves opened this issue Jul 4, 2021 · 3 comments
Open

How to have inputs with array value #847

RomainGoncalves opened this issue Jul 4, 2021 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@RomainGoncalves
Copy link

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.

@deandreamatias deandreamatias added help wanted Extra attention is needed question Further information is requested labels Jun 10, 2022
@gowda-nirmal
Copy link

Any updates on this one? I have the same requirement where my form has an array of objects. Is there an option for saving the data with index?

@deandreamatias
Copy link
Collaborator

Maybe related with this feature #1156

@deandreamatias
Copy link
Collaborator

Created a discussion to big features. If someone can and want, participate on #1466

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
Status: Backlog
Development

No branches or pull requests

3 participants