Multiple HTML FORMs on one Notes form

I have a search box in a subform that is part of a header for the entire site. When submitted with the button next to it, it obviously does a search.

Because it is the header for the site, it can have views, forms or static information displayed on the same page. Here is my problem…

Doing a search works just fine. However, when I attempt to create a new document on a form and then submit it, the document is saved BUT the fields ARE NOT. It has all of the fields in the document properties but they are all blank (aside from Form).

My search form has starting and ending html tags.

Thanks

Subject: Javascript button with Domino Search URL

Don’t submit the form to perform the search. Instead, use javascript in your “Search” button to open a Domino search URL. For example, if your form has a field called ‘Query’ on it that contains the search word, the Search button could contain the following:

var f = document.forms[0];

if ( f.Query.value == “” ) {

alert (‘At least one search word is required’)

} else

var pathname = window.location.pathname.toLowerCase().split (“.nsf”);

window.location=pathname[0]+“.nsf/yourviewname?SearchView&Query=”+escape(f.Query.value);