attributes = {'_autofocus':'autofocus', '_type':'tel', '_autocomplete':'off', '_style':'height:80px; width:80px'} score_box = SQLFORM.factory(Field('score', 'integer'), **attributes) score_box = FORM(INPUT(_name='score',requires=IS_NOT_EMPTY(), _style='height:80px; width:80px; font-size:50px;', _autofocus='autofocus', _type='tel', _autocomplete='off' ) )Field('score', 'integer',
widget=lambda f, v: SQLFORM.widgets.integer.widget(f, v, _autofocus=True))
form.custom.widget.score['_autofocus'] = True