We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

setDefault issue in Forms

Hi,

There seems to be an oddity with setDefault. If we setDefault to a checkbox of false but the form's entity initially has a value for the checkbox of true, if the checkbox is set to false in the browser and therefore no value exists in the $_POST array after form submission, setDefault doesn't seem to set the checkbox's value to false?

Does anyone else see this behaviour? Thanks.

Hi Create code example to see bug In 1.3.2 branch i fix setDefault