Re: [html-formfu] new 'force_default' attribute for elements

2007-09-15 Thread Carl Franks
On 14/09/2007, Mario Minati <[EMAIL PROTECTED]> wrote: > On Friday 14 September 2007 11:10:02 Carl Franks wrote: > > Tests needed! :) > Done. ++ > > Also, regarding this snippet... > > > > # if the default value has been changed after FormFu->process has been I missed the "default" bit when

Re: [html-formfu] new 'force_default' attribute for elements

2007-09-14 Thread Mario Minati
On Friday 14 September 2007 11:10:02 Carl Franks wrote: > Hi Mario, > > On 13/09/2007, Mario Minati <[EMAIL PROTECTED]> wrote: > > Today I had to implement a disabled form field, which should keep it's > > value no matter what the user sends in the form data. > > Okay, when I was viewing the `svn d

Re: [html-formfu] new 'force_default' attribute for elements

2007-09-14 Thread Carl Franks
Hi Mario, On 13/09/2007, Mario Minati <[EMAIL PROTECTED]> wrote: > Today I had to implement a disabled form field, which should keep it's value > no matter what the user sends in the form data. Okay, when I was viewing the `svn diff`, I was wondering what it was for - but that makes sense. > So

[html-formfu] new 'force_default' attribute for elements

2007-09-13 Thread Mario Minati
Today I had to implement a disabled form field, which should keep it's value no matter what the user sends in the form data. So I created the 'force_default' attribute which overwrites the value in param with the default value. The changes and documentation is in Elements::_Field. BTW: I chang