How to unset field value of a post edit view

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to unset field value of a post edit view

Amit Gora
i am using checkbox array in my form and save their values "," separated in database. so when i go into edit view of this post then it`s get default value of field which is set by controller so i want to disable it for some fields. how i can do it??

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to unset field value of a post edit view

euromark
You need to be more specific.
Also, your forms should always preserve the correct state on post, and should preset on get with DB values etc.

Failing to do so will get you in trouble.
Mark


Am Dienstag, 22. Dezember 2015 11:39:13 UTC+1 schrieb Amit Gora:
i am using checkbox array in my form and save their values "," separated in database. so when i go into edit view of this post then it`s get default value of field which is set by controller so i want to disable it for some fields. how i can do it??

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.