IS_IN_SET or write in

40 views
Skip to first unread message

Yebach

unread,
Aug 6, 2019, 2:53:47 AM8/6/19
to web2py-users
Hello

Is it possible to create a validator for form field that is a combination of IS_IN_SET and a user write in? The field is of type string.
db.nalogi.n_company.requires = IS_IN_SET(['Canon', 'HP', 'Xerox', 'Lexmark', 'Brother', 'Konica/Minolta', 'Kyocera', 'Other'], zero=('Select'))

Thank you



Massimo Di Pierro

unread,
Aug 18, 2019, 1:48:29 AM8/18/19
to web2py-users
possible but not implemented. honestly this is complicated and I'd rather do it i vue.js in py4web than in web2py.
Reply all
Reply to author
Forward
0 new messages