CF8 - 8.0.15 - Checkboxes Group

How to handle JSON-encoded checkbox group data in ChronoForms.

Overview

The issue occurs when checkbox group data is stored as a JSON array in the database and needs to be properly decoded for display or editing.
Update to CF version 8.0.16 or later, which includes a new behavior in the Read Data and Save Data actions to automatically set JSON fields for checkbox groups.

Answered
ChronoForms v8
rb rbock 18 Oct, 2023
Hello Max... I don't understand where I have to insert/activate decode json.

My configuration:

db field: ART
dbread_action - data, with merge data

checkboxes group: field name = ART - Options: Chk1=Chk1, Chk2=Chk2...

on submit: save_action -> ART={data:ART}

= DB: ["Chk1","Chk2"]

{var.encode:data.ART}

Where do I put that? Why encode? Wouldn't it be easier to add an option: decode Json from DB for the checkboxes group under behaviors? On CF7 the option is under DB Read Action -> Special Field -> Decode json Oh, and can you please fix the beauty error with Merge Data? It says '>Data Merge, thanks.
Max_admin Max_admin 21 Oct, 2023
Answer
I have done that in 8.0.16, a new behavior to set JSON fields in Read Data & Save Data
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rb rbock 21 Oct, 2023
Nice, Max... But no download?!
Max_admin Max_admin 21 Oct, 2023
1 Likes
Hopefully before Monday
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.