On 26 July 2012 14:43, adohertyd <adoher...@hotmail.com> wrote:

> . A great example of this is Google. If you type a query in the main bar
> it gives you results. You notice that you've spelt the query incorrectly.
> Google offers a suggestion, or the user has the option of re-typing the
> query in the box and getting a new set of results. How would I do this?


Maybe the autocomplete widget (or suggest plugin (
http://dev.s-cubism.com/plugin_suggest_widget).


> Also, on a side note, how do I give the radio buttons in my form a default
> value?


What I have done, was this:

        Field('option', requires = IS_IN_SET([(1,'Search all terms (like
Google search)'),
                                              (2,'Search any of the terms'),
                                              (3,'Advanced')]),
                                              default = 1,
                                              widget =
SQLFORM.widgets.radio.widget)

Regards
Johann
-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

-- 



Reply via email to