1

I am using this code which I thought was right.

{exp:search:simple_form channel="work" search_in="everywhere" role="search" id="search-form"}
                  <label class="screen-reader-text" for="search">Search</label>
                  <input type="text" value="" name="s" id="search" title="Enter keyword">
                  <input type="submit" id="search-submit" title="Search it" value="→">
                {/exp:search:simple_form}

However I get an error (see attached). Does anyone have any ideas to what I am doing wrong in this case?

enter image description here

1 Answer 1

3

Only certain input fields are supported and if you're using keywords for example then you need to ensure that the name attribute is set:

<input type="text" name="keywords" id="keywords">

That should yield some results.

2
  • Many thanks I will follow the documentation. Mar 29, 2013 at 18:07
  • No problem, post back if you're stuck. Don't forget to mark the answer correct if it solved the issue.
    – Ian Young
    Mar 29, 2013 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.