Problem with Single checkbox

How to fix a single checkbox always storing "0" in the database.

Overview

The issue was caused by an incorrect square bracket placement in the field name setting.
Ensure the field name is set correctly without misplaced brackets, and verify the checkbox configuration matches the database field type.

Answered
ChronoForms v5
Fr Fredolino 22 Mar, 2017
Hi,

I just wanted to ask briefly why a "0" is always stored in my database?
It's about a single checkbox.

Das DB-Feld ist Bool tinyint(1)

Element-Einstellung/FieldName: [sun]aktivieren
Field ID = aktivieren
Field Value =1
Checked = Yes

Thanx
Fred.
Gr GreyHead 22 Mar, 2017
Hi Fredolino,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

Bob
Fr Fredolino 22 Mar, 2017
Answer
Hi,
have found the problem now.
I accidentally set the square bracket wrong.
grrr...

Fred.
This topic is locked and no more replies can be posted.