$$Return: Hit Enter key for search query

Hi All,

I’ll describe the problem first then try to explain how I’ve tried to fix it and why I’m stumped.

Problem:

I have a form where the user enters search terms in the Search field, presses Enter or clicks a “Search” button to see the results and this works without any problems. The results are displayed with a $$SearchTemplateDefault form. On the $$SearchTemplateDefault form, I have another Search field so that users can perform another search without going back.

With this second Search field, I’m having trouble making it so that users can submit a search query with the Enter key. The $$Return field won’t pull information from the Search field. I’d like it to grab the search terms that the user enters in the Search field so that when a user hits the enter key, it’ll return the results.

This is the value of the $$Return field:

“[HostBoards.com” + Search + “]”

Right now if I enter the search terms into the Search field and press Enter, I’m just taken here:

This only happening in Firefox (using v3). I don’t get a response when I hit Enter using IE.

What I’ve tried:

I’ve tried adding a button that will do @Command([ViewRefreshFields]) and then pressing it before submitting the query with the Enter key. That had no effect.

I’ve also tried making the Search field a computed field with a value like “search terms” and that passes correctly to the $$Return field but isn’t acceptable for real use.

Because the Search and $$Return fields are identical between the search form and the $$SearchTemplateDefault I think that the problem must have something to do with the $$SearchTemplateDefault form being weird but I’m just stumped.

Thank you so much! And I’m sorry it’s kind of long-winded.