Handling multiple/repeated data on forms ?

Hello,

Is there a way I could handle repeated data in a form ?
Suppose I want to allow the user to handle multiple emails, phones, addresses etc. (for instance, like google contacts do) and would let the user add them, remove, limit up to X values, etc. in a single form - how could I do it ?
I expect the whole data to be saved into a single json (or whatever is the format) stream of course.

Couldn’t find a demo or anything clear in the docs.

Thanks,
Howe

You can add inputs to form dynamically, while they have different “name” attribute. In such case form.getValues() will return a json with all form values.

http://webix.com/snippet/977eed1e

Thanks, I’ll try it.

@maksim if I want to have the same name but I need to get the data in array? Like

“emails”:[“email":"xyz@abc.net”, “email":"abc@xyz.net”]

is it possible?

Webix Form will not be able to work with non-unique form names.

If you need to repeat some filed multiple times, check multi-text widget

http://docs.webix.com/desktop__multitext.html