[symfony-users] Re: sfForm clean bind

2010-01-20 Thread Raphael Schumacher
Calling $form-setDefaults(null) resets all values in the form, that should work in principle (didn't try out yet). It's a sort of full reset, and the fields should get the defaults as If you desire the tainted values (the ones the user entered before validating them, you could use something like

[symfony-users] Re: sfForm clean bind

2010-01-18 Thread DoRiaN
Ok there are lot of solutions, buf does sfForm have a method to this ? On 15 jan, 14:39, Tom Ptacnik to...@tomor.cz wrote: If you want to clear the form after it's proccessed, you can simply do redirect to the same form (in the action) On 15 led, 12:23,DoRiaNdoria...@gmail.com wrote:

[symfony-users] Re: sfForm clean bind

2010-01-18 Thread ken
It doesn't have. And it is highly advisable that a redirect is executed after a form is processed. The only time no redirection will happen is if the form is invalid. On Jan 18, 7:02 pm, DoRiaN doria...@gmail.com wrote: Ok there are lot of solutions, buf does sfForm have a method to this ? On

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread ken
What's your purpose of clearing the form of its values? On Jan 15, 7:23 pm, DoRiaN doria...@gmail.com wrote: Hello, How to delete values after bind() ? I want to clean my form. Thank, -- You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread DoRiaN
When the form isValid(), i display again the same form empty to add a new element. I do new Form because i don't know how to clean values. On 15 jan, 14:27, ken marfillas...@gmail.com wrote: What's your purpose of clearing the form of its values? On Jan 15, 7:23 pm, DoRiaN doria...@gmail.com

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread Tom Ptacnik
If you want to clear the form after it's proccessed, you can simply do redirect to the same form (in the action) On 15 led, 12:23, DoRiaN doria...@gmail.com wrote: Hello, How to delete values after bind() ? I want to clean my form. Thank, -- You received this message because you are