Overriding sprox admin form edit validator (un requiring a field)

18 views
Skip to first unread message

alonn

unread,
Sep 19, 2012, 7:00:58 PM9/19/12
to turbo...@googlegroups.com
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

using tg 2.1.3 
thanks for the help

Carlos Daniel Ruvalcaba Valenzuela

unread,
Sep 19, 2012, 8:34:35 PM9/19/12
to turbo...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages