Hi Anthony, This line: > > _controls = DIV(controls, _help, _class='col-sm-6 controls') > > puts the content inside the DIV in question. If you don't want that in > case of read-only fields, you'll need to first check whether "controls" is > a form widget (i.e., input, select, or textarea), and don't wrap it in the > DIV if not. >
I am not sure whether I solved the issue correctly but this solution works: # embed _help into _controls if not (isinstance(controls, INPUT) and isinstance(controls, SELECT) and isinstance(controls, TEXTAREA)): _controls = DIV(P(controls, _help, _class='form-control-static'), _class='col-sm-6 controls') else: _controls = DIV(controls, _help, _class='col-sm-6 controls') Why does the comment say: # embed _help into _controls Isn't it the field value I want to be enclosed by <p></p> Hi Paolo, I downloaded web2py 2.8.2 and you're right, no more issues. About the flash, I always put it right above the form, and never give it a fixed position, for some of my forms are preceded with a headline and text, other forms only occupy a small part of the page, in those cases the flash message may be overlooked or block content. Kind regards, Annet -- 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/groups/opt_out.