Try
echo $form->input('detail', array('value'=>''));

On Sat, Aug 22, 2009 at 12:37 PM, simplesi<[email protected]> wrote:
>
>
> I'd like to reset a text field to blank when I edit the record but this code
>
> echo $form->input('detail', array('default'=>''));
>
> doesn't seem to do anything - can I set it in the controller and if so how
> (Model name is Issue)
>
> regards
>
> Simon
>
> --
> View this message in context: 
> http://www.nabble.com/How-do-I-set-a-field-to-blank-when-editing-a-record-tp25095417p25095417.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to