It is documented here: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Range-set-and-equality-validators. Assuming you want separate values and labels, you can use a dictionary or list of tuples (not a list of dictionaries as you have, though).
Anthony On Monday, September 3, 2018 at 6:02:55 AM UTC-4, Yebach wrote: > > Hello > > Is it possible to use validator IS_IN_SET to handle dictionary. I want to > send a list of dicts for user to select [{"id": 1, "m:code": C-111}, {"id": > 2, "m:code": BC-222},.....], so when I use on_validate I can handle with id. > > Thank you > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.