Radios group problem in Repeater area

Display saved radio button values in a CF repeater area.

Overview

The issue occurs because the radio button field names within the repeater are not set dynamically, causing only the last value to be shown.
Set the field value using the correct dynamic syntax and ensure the field name itself is also made dynamic by incorporating the repeater key variable.

Answered
ChronoForms v6
pa patrick.h 26 Feb, 2018
Hi,

i want to show all my records which are saved in database (3 Textfields and 1 Radio)
The 3 textfields are correct but the radio group only shows the last result. In Database there are both radios saved.
How can i fix the problem?

Radios group problem in Repeater area image 1
Gr GreyHead 26 Feb, 2018
Hi patrickhoechst,

Please drag a Debugger action into the On Load event, then submit the form and post the debug results here.

Bob
Gr GreyHead 26 Feb, 2018
Hi patrickhoechst,

Please drag a Debugger action into the On Load event, then submit the form and post the debug results here.

Bob
Gr GreyHead 27 Feb, 2018
Hi patrickhoechst,

I can see both values there, I don't see why they don't load correctly :-(

Please ask Max if he has any suggestions using the Contact Us menu above and linking to this thread.

Bob
Max_admin Max_admin 27 Feb, 2018
Answer
Hi,

How do you set the fields values ? your fields names inside the repeater are not dynamic, you need to use the {var:area_repeater10.row.field_name} in each field value box, and the fields names should be modified too: {var:area_repeater10.key}, please check the manual for how this can be done correctly.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pa patrick.h 27 Feb, 2018
Hi,

i set the field value like this: {var:area_repeater10.row.Datenuebersicht.reparaturfreigabe} but i forgot to make the Name Field dynamic :-(

Now, the radios works fine :-)
This topic is locked and no more replies can be posted.