I didn't really think about what you are trying to do, but maybe this will help for your specific bug:
SELECT(*years, _name='year', _id='year', _class='form-control', requires=IS_INT_IN_RANGE(request.now.year - 1, request.now.year + 1, error_message="Year isn't correct!"), **{'_v-model': 'year'}) On Tuesday, 22 September 2020 at 18:50:15 UTC+1 Константин Комков wrote: > > I don't know but it's not working: > > SELECT(*years, _name='year', _id='year', > requires=IS_INT_IN_RANGE(request.now.year - 1, request.now.year + 1, > error_message="Year isn't correct!'"), > _class='form-control', **{'_v-model': 'year'}) > > > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2d646548-12d5-433c-b05f-c1bbd6a31700n%40googlegroups.com.