Forums

Nested Repeater

Nostromo 21d ago

Hello everyone,

I am new to ChronoForms 8 and I am trying to nest a repeater within another repeater. Is this possible?

I attempted to set this up in a form, but I encountered two issues:

  • The "Add" button for the second repeater does not work.
  • The "Remove" button for the first repeater does not work.

Could you please help me resolve this issue?

Thank you in advance

Max_admin 20d ago

Hi Nostromo

Did you set different repeater keys for the 2 repeaters ? like "n" for the first and "m" for the 2nd ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Nostromo 20d ago

Hello Max,

First of all, thank you for your reply.

Yes, I did change the "keyname". Should I also rename the field names by adding [n] or [m]? The delete button in the first repeater isn’t working, and the add button in the second repeater isn’t working either.

Max_admin 20d ago

Hi Nostromo

if you have nested repeaters then each field name will have 2 keys, something like this:

fieldname[n][m]
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Nostromo 19d ago

Hi Max ! 

thank you for your reply.

The fields display correctly, however, the delete button of repeater m does not work, and the add button of repeater n does not work.

The names of the objects in repeater m are in the format example[m], and the names of the objects in repeater n are in the format example[m][n]. Should a number be added?

I put the repeaters in grids, but it doesn't fix the button issue.

Nostromo 7d ago
Hello, I'm reopening this thread because I'm still stuck.
Thanks in advance.
You need to login to be able to post a reply.