Question
I have a topic with a form and a corresponding search feature that returns results in a table. The search finds topics based on values entered into the form.
Does anyone know how I can initialise the form fields used by the search so that when the topic is first displayed, the search can find some initial results?
i.e.
%SEARCH{ search="%URLPARAM{"testmanager" multiple="on" separator="|" }%;%URLPARAM{"search"}%;%URLPARAM{"product" multiple="on" separator="|" }%;%URLPARAM{"feature" multiple="on" separator="|" }%" scope="text" regex="on" web="Planning" excludetopic="NewProjectTemplate, WebHome" casesensitive="on" nosearch="on" nototal="on" format="| [[$web.$topic][$topic]] | $formfield(testmanager) | $formfield(product) | $formfield(feature) | $formfield(release) | "}%
Is there anyway of initialising URLPARAM(testmanager) or any of the other form fields - without submitting the form?
Environment
--
DavidBaker - 26 May 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You could try using the
default="any value" attribute for the URLPARAM variables.
--
LynnwoodBrown - 26 May 2006
That did the trick - thanks!
--
DavidBaker - 30 May 2006