Unckecking checkbox is not saved to database

Save unchecked checkbox values in ChronoForms.

Overview

The problem occurs because unchecked checkboxes do not submit a value to the database, leaving the previous checked state unchanged.
Enable the 'ghost' setting for the checkbox field in CF and ensure its value is set to empty or zero to correctly save the unchecked state.

Answered
Connectivity v6
ct ctrlmedia 27 Apr, 2017
Hi,
With Max's help I managed to get the checkboxes to save and show as checked within my table.

When unchecking the checkbox and clicking the update toolbar button the value is not being passed as 0/null so when the records re-load they are still showing as checked and the value is still 1 in the database?

A point in the right direction would be much appreciated.
Kind Regards
Max_admin Max_admin 27 Apr, 2017
Answer
1 Likes
Hi ctrlmedia,

Does the checkbox has the "ghost" setting enabled ? if yes then what 's the value ? make sure its empty or 0

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ct ctrlmedia 27 Apr, 2017
1 Likes
Perfect! Just enabled Ghost and left the value blank.
Thanks for the help again Max!
Regards
This topic is locked and no more replies can be posted.