Forums

CF8, Load, Save and display the values from a checkbox group. field database

ralphg 11 Jan, 2025

Hello, 

When I use a Checkbox Group the data is not automatically saved to the database. I also want to load the data from the database to the Checkbox Group. I tried to add the field as JSON field but with no success. The field is not populated with data. How do I configure this the wright way?

Also I want to display the data (checked value1, checked value2, etc.. ) in a HTML blok after successful saving the data. {data:checked_item_database_field}

Best regards,Ralph

Max_admin 11 Jan, 2025

Hi ralph

did you add the field name to the "Modify data source" list ? and did you add it to the JSON fields list ?

later when you "Read Data" you need to add it to the JSON fields list there too

if you need to print the value after it's read from the database you need to use the read_data var name

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.