Friday, May 1, 2009

Ajax add form

I'm trying to create an 'add' form that is hidden on my index view
which lists all the entries in a table.

I can get the form to show using ajax when the 'add' link is clicked,
but the first field of the add form is a select list of all the data
of the table, id, name and comments. I assume this is coming from the
index function of the controller which does a find all.

How can I stop this behavior so the 'add' form field is a standard
text box for entering new data?

Thanks in advance

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

No comments: