Daniel, Thanks for your response, really after modify the field really works now... Best regards Medeiros On 07/08/2009 14:11, Richtermeister wrote: Hey Marcos, I think I've had the same issue before. What's happening is that the text field is really submitting 2 fields, one being the text value, and the other the "is empty" checkbox value. So when you switch the widget to a choice widget, only one value gets submitted (instead of an array of 2), and the filter doesn't see that it's been sent that value.What I ended up doing is switch the field type in the filter class to foreignKey instead of text. That makes it work. Hope this helps, have a great day, Daniel On Aug 7, 7:21 am, Marcos Medeiros <medei...@copeve.ufms.br> wrote:Hi for all, I'm trying implements a form filter in symfony 1.2, but one field don't work. I have three fields: field1, field2, field3 field1 is a foreign key field2 is a text field field3 is a text field In field1 I've used a sfFormWidgetChoice to select a value and work without problem In field2 is a default definition and work without problem In field3 I've used a sfFormWidgetChoice to select a value but don't work, but if I leave with default definition the field is used in select statement Can you help me, please TIA Medeiros --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [symfony-users] Symfony filter Marcos Medeiros
- [symfony-users] Re: Symfony filter Richtermeister
- [symfony-users] Re: Symfony filter Marcos Medeiros