Modify data source: from radio to boolean

perissf718 4d ago

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 4d ago
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.
You need to login to be able to post a reply.