Hi,
How to custom an input field width class='col-sm-x' in create/edit forms that come from SQLFORM.grid
On SQLFORM can be done this way:
form = SQLFORM(db.movimiento)
if form.element('#movimiento_cantidad'):
wclass = form.element('#movimiento_cantidad')['_class']
form.element('#movimiento_cantidad')['_class'] = wclass + ' col-sm-3'
form.element('#movimiento_cantidad')['_maxlength'] = 8
but when the form is generic from SQLFORM.grid how can it be done?
Thanks for any help if it could be done.