Skip to content
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

How to add multiple level nesting #29

Open
Ivona221 opened this issue Nov 26, 2018 · 3 comments
Open

How to add multiple level nesting #29

Ivona221 opened this issue Nov 26, 2018 · 3 comments

Comments

@Ivona221
Copy link

I am trying to do a multiple level nesting meaning i want to add a group element inside another group element. However i get the following error:
screenshot_5

The thing i am trying to do is :

const fields = [ { type: 'group', name: 'address', label: 'Address', fields: [ { type: 'group', name: 'Address2', label: 'Address2', fields:[ { type: 'text', name: 'Name', label: 'Name', }, ] }, { type: 'picker', name: 'country', label: 'Country', defaultValue: 'INDIA', options: ['US', 'INDIA', 'UK', 'CHINA', 'FRANCE'], }, ], }, { type: 'text', name: 'user_name', required: true, icon: 'ios-person', label: 'Username', }, ];

@bietkul
Copy link
Owner

bietkul commented Nov 26, 2018

Can you tell me which version you're using, if on latest then can try with 1.0.15.

@Ivona221
Copy link
Author

I was using version 1.0.16. I also tried with 1.0.15 but i get the same error.

@bietkul
Copy link
Owner

bietkul commented Dec 7, 2018

Multilevel nesting is not supported by this library, you can try react-reactive-form to achieve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants