That's strange..
Which browser do you use?
Are you sure you did select an element inside the select box by
clicking or keypress?
If you select the element, the input box should change the color from
pink to cyan.
The form vars record indicates you didn't select any element from the
select box.

Kenji

On 9月22日, 午後9:07, Johann Spies <johann.sp...@gmail.com> wrote:
> Kenji,
>
> I do not get error messages now but the autocompletion does not word.  I get
> a dropdown list and when I select one, what was entered in the form stays as
> it was.
>
> Example: If you look at the screenshot: if I select the first item in the
> list the following form vars gets recorded:
>
> <Storage {'doc_nr': '', '_autocomplete_doc_nr__aux': 'ass'}>
>
> The code:
> vorm = SQLFORM.factory(
>         Field('doc_nr',widget=suggest_widget(db.akb_doccenter.doc_nr,
>                                              id_field=db.akb_doccenter.id,
>                                              limitby=(0,20), min_length=2)))
>     if vorm.accepts(request.vars, session):
>         response.flash = 'submitted %s' % vorm.vars
>         print vorm.vars
>     else:
>         response.flash = 'nie gekry nie'
>
> regards
> Johann
> --
>  May grace and peace be yours in abundance through the full knowledge of God
> and of Jesus our Lord!  His divine power has given us everything we need for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
>                                                     2 Pet. 1:2b,3a
>
>  Screenshot - 22092011 - 14:03:05.png
> 23K表示ダウンロード

Reply via email to