It's not the auto complete function that I'm looking for. I just want the 
form to be populated with the original search term, and to be able to 
submit a new search term from the results page

On Thursday, 26 July 2012 14:34:05 UTC+1, Johann Spies wrote:
>
> On 26 July 2012 14:43, adohertyd 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