On Feb 9, 1:40 am, Jason Brower <encomp...@gmail.com> wrote: > Don't know if I can discribe this in type but... > I need a validator that can alow only one A B C D E F other wise it > should be 0 That means you will accept anything but will have a value depending on the input,
> I haven't figure out how to make IS_IN_SET(["A","B","C","D","E","F"]) > unique=True and default=0 all at the same time... so I would use onaccept=function def function(): if request.vars.fieldx in ["A","B","C","D","E","F"]: form.vars.fieldx=request.vars.fieldx else: form.vars.fieldx=0 Best Regards, Denes. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.