On Wed, Sep 19, 2012 at 4:00 PM, alonn <[email protected]> wrote:
> I'm using  customized sprox tables and (soom) forms in tg admin controller -
> when I submit a form with some empty fields I get a red " Please enter a
> value" message besides each empty fields. the problem is - it shouldn't
> validate those fields, I'm perfectly happy with them empty.  I'm not talking
> about removing specific fields from the form (which I could easily enough do
> with __omit_fields__) since the empty fields vary in different scenarios. I
> just need sprox to "Un require" a specific list of (could) be empty fields.
>
> how can I achieve this? couldn't find it the docs

I'm not quite sure (I haven't tryed and I don't have a test machine at
hand) but there is a __field__validator__ dictionary, why not try to
set the given field validator to empty (None) or a dummy validator (it
uses formencode validators if I recall well).

Regards,
Carlos Daniel Ruvalcaba Valenzuela

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to