[TYPO3-mvc] checkbox problem

Henjo Hoeksma me at henjohoeksma.nl
Wed Aug 17 11:13:36 CEST 2011


On 2011-08-17 08:42:34 +0000, Christian Kartnig said:

> Hi there!
> 
> I have to push this again. Did nobody else come across this behaviour?
> 
> Everytime I display a form again after submit (e.g. for validation), 
> the boolean checkboxes display this error:
> 
>  >>Checkbox viewhelpers can only be bound to properties of type boolean 
> or array. Property "emailVisible" is of type "string". <<
> 
> Please help me, I really don't know what to do.
> 
> best regards,
> Christian

Hi Christian,

not sure if this helps, but do you declare both true and false values 
in your controller?

I remember having issues with checkboxes and using:

> $newObject['propertyname'] = TRUE;
> $newObject['propertyname'] = FALSE;

in the respective action in the controller.

Henjo



More information about the TYPO3-project-typo3v4mvc mailing list