Issue:
When setting the autocomplete widget on two fields in same form, the 
dropdown box always appears underneath the first field only, even if the 
second field is selected and typing into the second field.  Values are 
inserted into the correct fields and form submission works ok... it's just 
the form field that the dropdown box attaches too (always the 1st) that is 
a problem.

Expected Behaviour:
The dropdown selection box should appear below the field that the user is 
typing into, not always above the first field in the form.

Web2py versions tested: 
2.7.4 (and also 2.4.6).

In model:
db.contacts.nationality.widget = SQLFORM.widgets.autocomplete(request, db.
country.printable_name, limitby=(0,10), min_length=1)
db.contacts.residence.widget = SQLFORM.widgets.autocomplete(request, db.
country.printable_name, limitby=(0,10), min_length=1)

In controller:
    form = SQLFORM(db.contacts, record, separator = '', formstyle = 
'bootstrap', submit_button = 'save changes')

In view:
<h4>EDIT CONTACT DETAILS</h4>
{{=form}}

Can someone else verify this is a bug?  I've been hunting in the source but 
can't see an easy way to explicitly specify which classes the widget must 
apply to.

Thanks,



-- 
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.

Reply via email to