Modify data source: from radio to boolean

Convert radio button form data to a boolean database field.

Overview

The user needs to store radio button selections as boolean values in a MySQL tinyint column.
Ensure the radio button values are set to 0 for 'No' and 1 for 'Yes'. Then, in the Modify Data Source action, map the form field directly to the database column.

Answered
ChronoForms v8
pe perissf718 02 Nov, 2025

Hi,

is there an easy way to read a radio group data value an save it to db as a boolean (mysql tinyint)?

Maybe using Modify data source? 

Let's imagine my radio group is called: skipass and contains the values: Yes, No.

Thanks

Max_admin Max_admin 02 Nov, 2025
Answer
1 Likes

Hi perissf718

if your database table column is of type tinyint and the Radio values are like this:

0=No
1=Yes

Then it should work as you need automatically, you can use the Modify Data Source to set value of specific table columns:

table_field={data:skipass}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply