Nette and Jquery.repeater

Notice: This thread is very old.
akrall
Member | 6
+
0
-

Hi!

I'm trying to use jquery.repeater in a form to allow me to create multiple fields of the same type to accommodate needs, like this:

Conact Name – Phone Number

Add Another Contact Name

and then add a similar rows with the same Name – Phone fields.

My question is, how do I populate this form and editing an already existing record with multiple Contacts and Numbers rows?

I know how to populate select fields (using arrays) but this would be like populating multiple text fields based on arrays?

Any pointers?

matopeto
Member | 395
+
0
-

Try Kdyby/FormsReplicator: https://github.com/…/en/index.md

Last edited by matopeto (2017-08-06 12:24)

akrall
Member | 6
+
0
-

How do you install an extension without using composer?

CZechBoY
Member | 3608
+
0
-

use composer. or is there any really good reason why you cannot use it?

if you have old project, which does not use composer, then you have to “play on composer” and choose version that matches your version of nette and php.

matopeto
Member | 395
+
0
-

akrall wrote:

How do you install an extension without using composer?

Use composer, bud if you can't download and copy to your project (e.g. to libs directory) and add libs directory to nette robot loader in the bootstrap.