All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Non-Search related post variables

Philip 23 May 2012 23:55 question, complete

Is it possible to include post variables that are not related to the search as part of the search form?

I'd like to include a variable to control an element in the page. eg. I have a drop down box that shows/hides some search options and would like to maintain the state of the dropdown after postback.

Replies

  1. Low 24 May 2012 12:42

    Hi Philip,

    Yes, that will work. An input field like <select name="foo"> will be available as {low_search_foo} in the search form, as long as you add the query="" parameter to it.

  2. Philip 24 May 2012 22:39

    Thanks Low. Almost had it! Just had the wrong variable name.