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

Support archive

Possible to set the result_page via a field in the search form?

Stephen 3 Mar 2014 13:09 question, complete

Hi Low,

Is it possible to set the result_page via a field in the search form?

I've got a use-case where the client would like to have the option to output the normal search results table (as it is currently hard-coded via the result_page parameter in the search form tag), or a print-friendly view of the search results that use a different result_page URL.

So it'd be ideal if I could specify this via a result_page select field on the search form, but I can't find any mention of it in the docs so thought I'd ask the question, in case I'm missing something.

Thanks,

Stephen

Replies

  1. Low 3 Mar 2014 13:14

    You can, using an input field with name="result_page".

  2. Stephen 3 Mar 2014 13:44

    Thanks Low, that worked a treat!

    In hindsight, I should have just tried that before posting, but I was convinced this wasn't possible and was going to lead to a feature request! :-)