Forums

Checkbox with db-save

hcohl 14 Apr, 2017
In my form there are different checkboxes. If I check them, db save gives the value 1. But if I first check them and in a second step uncheck them - db save gives again the value 1 (and doesn't change to 0 or empty)
The user should have the posibility to check the checkbox - than db save - than uncheck - db save.
How can I solve this problem?
Thank you for an answer.
GreyHead 14 Apr, 2017
Answer
Hi Hcohl,

An unchecked checkbox does not submit anything when the form is submitted so the existing value will be kept. ChronoForms has a 'ghost' option where you can set an 'unchecked' value - if you set this to 0 then you will get the result that you want.

Bob
hcohl 14 Apr, 2017
Thank You!
This topic is locked and no more replies can be posted.