I ask you another question.
In this form I have two select. The possible values of second select
depends from the value of a field of my model.
I get the possible values of this select at the end of the edit
action.
Now I the subit works correctly  the second select has the correctly
value.
Instead if there is a validation error the operation to get the
possible value of the second select aren't executed and I can't see
the right values inside the second select.
How can I resolve this?

On Feb 13, 4:34 pm, "[email protected]"
<[email protected]> wrote:
> How can I enabled readonly for this field?
> I would use $form->input helper function
> I try to set echo $form->input('name',array('readonly'=>true)); but it
> doesn't work
>
> On Feb 13, 4:30 pm, Marcelo Andrade <[email protected]> wrote:
>
> > On Fri, Feb 13, 2009 at 11:28 AM, [email protected]
>
> > <[email protected]> wrote:
>
> > > Hi
> > > I have a form.
> > > Inside this form I have a field disabled but with a value.
> > > When I post form but in the form there are errors when the form is
> > > reloaded qith the errors the disabled field is empty.
> > > How can I correct this?
>
> > Disabled form fields are not submitted.
>
> > I suggest you turn this field enabled but readonly
> > (and additionally, add a css style to make it looks
> > like disabled).
>
> > Best regards,
>
> > --
> > MARCELO DE F. ANDRADE (aka "eleKtron")
> > Belem, PA, Amazonia, Brazil
> > Linux User #221105
>
> > [...@pará ~]# linkshttp://pa.slackwarebrasil.org/
--~--~---------~--~----~------------~-------~--~----~
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