I still don?t quite get the ?big picture? here. I?m confused as to why you use a dbj dropdown element for the Apprenant.
And how is it determined which Apprenants belong in (or are shown as selected in) the repeat group? Or can it be any of them so long as it is limited in number by the ?R?p?tition? value?
Was this element intended to be user-selectable? Can it be changed after the form is saved? If not ? and you still want to use a dbj element ? be sure to deny edit access to that element (so it would look just like a display or calc element).
What do you mean by ?I want to get automatically?? Does each repeat group need to be added manually by the user? Is it required that the number of repeats is always the ?R?p?tition? value?
Then, what is that ?Modules? element and how is it created and populated ? and how are those 2 elements related?
If my guess is correct in regards to what you are trying to do, here is a suggestion?
In the ?Pilotage des acc?ss apprenantsPilotage des acc?ss apprenants? form, include an ?Apply? button when new ? and hide the ?Submit? button. (Otherwise show the Submit button and hide the Apply button)
Then, use the form PHP plugin to include some post processing PHP that will programmatically create the records needed for the repeating group (if the Apply button was used to submit the form) ? then refresh the form showing the included repeats. (So the user doesn?t have to do this)
You could also use some css to hide those +- buttons for adding/removing the repeat groups (since they wouldn?t be needed if you programmatically create the repeats via php) ? and the repeats would be deleted if/when the form/row is deleted, so long as you have configured the list to delete the repeats.
I could be way off-base here with my assumptions ? but I just thought I?d give it a try.