@Tito,

Thanks for your reply. I tried changing the name of the what field in
the second form:


def index():
    form1=SQLFORM.factory(
 
Field('what',widget=SQLFORM.widgets.autocomplete(request,db.companykeyword.word))
 
Field('city',widget=SQLFORM.widgets.autocomplete(request,db.adres.plaats)))
    form2=SQLFORM.factory(
 
Field('what2',widget=SQLFORM.widgets.autocomplete(request,db.companykeyword.word)),
 
Field('zip',widget=SQLFORM.widgets.autocomplete(request,db.zip.region)))
    form3=[]
    if form1.accepts(request.vars,session,formname='form1'):
        redirect(URL(r=request,c='locator',f='city',args=[]))
    if form2.accepts(request.vars,session,formname='form2'):
        redirect(URL(r=request,c='locator',f='zip',args=[]))
    return dict(form1=form1,form2=form2,form3=form3)


When I type a word in the first form's what field, the drop box with
auto-complete results appears below the second form's what2 field.


@Massimo,

> ... and? did it solve it?

No, the problem still exists :-(
I guess it has something to do with the id in both cases being:
#_autocomplete_word_div


Kind regards,

Annet

Reply via email to