You could also do 'value' => '' on the form. Jeremy Burns Class Outfit
http://www.classoutfit.com On 1 Jul 2011, at 13:10, Jeremy Burns | Class Outfit wrote: > He's referring to the Form->input option. This makes it empty on first form > display, but is then populated with the value from $this->data after > validation, so Thomas' idea is the right one. > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 1 Jul 2011, at 12:28, Thomas Ploch wrote: > >> Hello, >> >> just set $this->data['Model']['captcha_field'] = null if your validation >> fails. This way the field will be empty in the view. >> >> Dunno what key 'empty' you mean, since validation rules don't have an >> 'empty' key available. >> >> Regards, >> Thomas >> >> Am Freitag, den 01.07.2011, 04:18 -0700 schrieb heohni: >>> Hi, >>> >>> I would like to have always my captcha input empty, especially on >>> reload because of validation error. >>> I thought I can do this with 'empty'=> true, but the input will always >>> show always the last value. >>> >>> Is there a better solution? >>> >> >> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> To unsubscribe from this group, send email to >> [email protected] For more options, visit this group at >> http://groups.google.com/group/cake-php > > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
