I just tried the format option change to the table to see if it worked for me... but it didn't. Thanks Villas for the 'requires' tip. I am sure i will need that knowledge at some point..
On Wed, 12 Aug 2020 at 01:30, David Orme <[email protected]> wrote: > Thanks! I had played with the represent attribute, with no success, but > using that first option within the controller works. Changing the validator > seems a bit over the top just to change the format, but it works! > > On Tuesday, 11 August 2020 16:07:36 UTC+1, villas wrote: >> >> Off the top of my head, maybe these ideas would put you on a better >> track... :) >> >> 1. The reference field has a default validator, try changing it to >> something like this: >> >> db.assignments.marker.requires = IS_IN_DB(db, 'markers.id', '%(last_name)s, >> %(first_name)s (%(email)s)') >> >> 2. Check out the .represent attribute >> >> >> >> >> -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/dc15ee08-5608-43b2-97fe-2c998aec5a9do%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/dc15ee08-5608-43b2-97fe-2c998aec5a9do%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CACWMBMOzOnMFfHU0nRY84srzNFtaaeQsNH4dMrm%3D9xrxdua3fQ%40mail.gmail.com.

