CF8 - 8.0.15 - Checkboxes Group

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 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.
rbock 21 Oct, 2023
Nice, Max... But no download?!
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.
rbock 23 Oct, 2023
1 Likes
Very nice, it works... Thank you!
You need to login to be able to post a reply.