CF8 - Parameter of a db in option of radiobutton

How to populate radio button options from a database in ChronoForms.

Overview

The issue occurs when the dynamic options for a radio button group are not correctly linked to the database read action.
Ensure the DB Read action uses 'All matching records' and 'Data Merge', then set the radio button's dynamic options data source to the correct variable, leaving the static options field empty.

Answered
ChronoForms v8
hi
i have this db: avj3_chronoforms8_accrediti_team

CF8 - Parameter of a db in option of radiobutton image 1

in CF8 I want to read field "TEAM" and I want to put it like choice of my radiobutton:
CF8 - Parameter of a db in option of radiobutton image 2
CF8 - Parameter of a db in option of radiobutton image 3

but with this code i don't stamp the field "TEAM" in my db 😟
rb rbock 17 Sep, 2023
Answer
1 Likes
Behavios -> Dynamic Options

Data Source: {var:read_data8} (or change name from read_data8 to read_team: DB Read data -> Wizard Settings -> Name: read_team)

Option Value code: {row:id}

Option Value text: {row:team}
Hi, thanks for your reply but it doesn't work.
I show my settings:

CF8 - Parameter of a db in option of radiobutton image 4

with these settings I haven't a label on radiobutton.
rb rbock 23 Sep, 2023
either team or read_team
rb rbock 23 Sep, 2023
1 Likes
try that

db_read -> wizard settings-> name: read_team
db_read -> Read Type: All matching records
db_read -> Behavios: Data Merge

radios group -> options: empty or =--Please Select--

radios group -> dynamic options -> Data Source: {var:read_team}
radois group -> dynamic options -> Option Value Code: {row:id}
radois group -> dynamic options -> Option Value Text: {row:team}
This topic is locked and no more replies can be posted.