[TYPO3-dev] Formular Validierung unwirksam?
Iffland, Sebastian
Sebastian.Iffland at ecom-ex.com
Tue Jul 21 14:10:43 CEST 2015
Hi,
Have you also tried, setting value to "1"? Afaik value "true" is handled
as string and won´t return bool value.
Am 21/07/15 2:00 pm schrieb "typo3-dev-bounces at lists.typo3.org on behalf
of Ronny Hauptvogel" unter <typo3-dev-bounces at lists.typo3.org on behalf of
rh at level-pro.de>:
>Hi,
>
>ok validation for boolean property seems to be working with the following
>mark-up and definitions:
>
>fluid:
><f:render partial="FormErrors" arguments="{field:
>'step5data.disclaimer'}" />
><f:form.hidden property="disclaimer" />
><label><f:form.checkbox property="disclaimer" value="true"
>/>disclaimer</label>
>
>property:
> /**
> * disclaimer
> *
> * @var boolean
> * @validate Boolean(is=true)
> */
> protected $disclaimer = FALSE;
>
>but if I check the checkbox and submit the form, then the disclaimer
>property is just false and don't takes over the "true" value :(
>
>
>
Mit freundlichen Grüßen
Kind regards
Sebastian Iffland
Senior Web Developer
Phone: +49 6294 4224 994 • Fax: +49 6294 4224 100
E-Mail: mailto:Sebastian.Iffland at ecom-ex.com • http://www.ecom-ex.com
THINK GREEN - KEEP IT ON THE SCREEN
_______________________________________________
>TYPO3-dev mailing list
>TYPO3-dev at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
ecom instruments GmbH
Industriestraße 2 • 97959 Assamstadt • Germany
Headquarters: Assamstadt • District Court Ulm: HRB 680352
Chief Executive Officer: Dipl. Ing. (FH) Rolf Nied • Customs Tax-No.: DE 146589088
_______________________________________________
>TYPO3-dev mailing list
>TYPO3-dev at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list