Hi,
The autocomplete widget currently searches for fields starting with
whatever the user puts in. Is there any way to change this behavior to
be like contains() rather then startswith()?
A section of my db.py is below:
db.define_table('building',
Field('name'), format='%(name)s')
db.define_table('student',
Field('name'),
Field('building', db.building),
Field('room'),
Field('forwarding'),
Field('country'), format='%(name)s')
db.define_table('mail',
Field('student', db.student))
db.mail.student.widget=SQLFORM.widgets.autocomplete(request,
db.student.name, id_field=db.student.id)