I think you are limited to either monkey patching FormWidget in gluon.sqlhtml or using server-side DOM manipulation on the form object after it has been created.
Anthony On Friday, March 10, 2017 at 6:39:07 AM UTC-5, Jurgis Pralgauskis wrote: > > Hi, > > How could I have different name in generated SQLFORM than field.name? > > I'd like to have optional field.formname > > Use-cases: > > - mult-table from with unique inputnames: > could be: field.formname='tablename__fieldname' > > - multi-record form (or multiform submision with ajax) > some inputs serializers for ajax require notation for names like > "tablename[id].fieldname" > example https://github.com/maxatwork/form2js , > https://github.com/marioizquierdo/jquery.serializeJSON > > -- 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/d/optout.