In a registration form I want a field to be read only, so I set db.register.interfaceCategoryID.writable=False db.register.interfaceCategoryID.default=interfaceCategoryID
In the form this field has the following html: <div id="register_interfaceCategoryID__row" class="form-group"> <label id="register_interfaceCategoryID__label" class="col-sm-4 controls-label" for="register_interfaceCategoryID">Interface category</label> <div class="col-sm-6 controls">Basic application</div> </div> I'd like to replace this line of code: <div class="col-sm-6 controls">Basic application</div> with: <div class="col-sm-6 controls"> <p class="form-control-static">Basic application</p> </div> which is more in line with Bootstrap's forms. I am looking for a generic solution, for I have more fields which are read only. 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

