CF8 Repeater Area containing dropdown field

CraigH 15 Nov, 2025

Environment:

  • J!5.4.0
  • CF:8.0.50
  • PHP:8.3.27

I have a simple test form that has a repeater area that contains a dropdown field with a simple static list of options.

I find that if I create initial clone instances via a php action then the dropdown works as expected for those clones, but for any clone added within the form the dropdown does not work.  There are no javascript errors in the console.

CraigH 18 Nov, 2025

This issue occurs for clones created by javascript either from clicking an add clone button or setting "Start Count" >0  in the Repeater Area.

Max_admin 18 Nov, 2025

Hi Craig

For me the dropdowns work when I set the start count to 3 and when I add more on the form reaching a total of 5, please create a small demo form with the repeater and dropdown only and attach it here

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
CraigH 18 Nov, 2025

Thanks for looking at this, I have a attached a simple form illustrating the issue. I think the issue comes from two aspects:

  • The repeater key is "nnnn" not "n"
  • There is PHP that initialises two clones

The form has a repeater area "start number" of 3 and a max of 20.

When the form is launched, I see 11 clones being created irrespective of the repeater key being "n" or "nnnn"

The change I suggested in  the other topic https://www.chronoengine.com/forums/topics/view/111934/suggested-changes-to-cf8-repeater-area-with-initial-clones#p407525  resolves the number of clones created issue for my testing, but I only offer that as a suggestion.

Disabling the PHP action results in the correct number of clones being created, but the dropdowns do not work.

Disabling the PHP action AND changing the repeater from "nnnn" to "n" and all works ok.

CraigH 19 Nov, 2025

So to confirm, if I apply the suggested fix I mentioned here to stop cloning of initial clones setup on a PHP action and change the repeater area key from "nnnn" to "n", all is working fine.

CraigH 23 Nov, 2025

many thanks Max, yes your fix works well on my test cases. Note still need to use "n" rather than anything else, ie "m" or "nnnn" for the repeater key but I can live with that in the CF7 forms I am migrating.

Max_admin 23 Nov, 2025

I tested here using your form which has "nnnn" as the repeater key and it works fine!

What is not working for you when you change the key ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
CraigH 23 Nov, 2025
1 Likes

Hi Max,  So for the test form "TestRepeatDropDowns_18_Nov_2025_19_14_16.cf8bak" I uploaded to this topic has a repeater with a start count of 3 and a PHP action that puts some values into the first two clones.

In my tests, with or without your fix  (or mine) for the number of clones created, I find that the dropdown in the 3rd clone does not dropdown. The same is true for any additional clones added via the add clone button.  But, if I change the repeater key to "n" all dropdowns work as expected.  

Max_admin 26 Nov, 2025
1 Likes

Hi Craig

Thanks for reporting this, I have fixed this issue and it should be available in the next update.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
CraigH 26 Nov, 2025

Great, many thanks

CraigH 28 Nov, 2025

Hi Max, I did some more testing of the fixes and found what I think is another issue. Which can be demonstrated in the test form I uploaded to this topic "TestRepeatDropDowns_18_Nov_2025_19_14_16.cf8bak".  The form has a repeater with a start number of 3.  If you:

  1. launch the form, so it has three clones 
  2. add three more clones
  3. remove the first three
  4. click submit, and the debugger shows clone data for clones 4,5,6
  5. click the go back button
  6. The start page shows 6 clones:  4,5,6,7,8,9

I would say it should only show 4,5,6

CraigH 02 Dec, 2025

I can think of two suggestions for the above issue.

  1. You consider the "start count" as a minimum number that must exist and the remove clone button is hidden or disabled for those clones so that they are always there. (I have taken this approach as a workaround in some dom ready JS code)  OR
  2. The clone init method that loops from 1 to "start  count" first checks how many exist already and only adds more when needed.
Max_admin 10 Dec, 2025

Hi Craig

Great, thanks for the confirmation, no problem :)

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.