Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Set 'Title & Keywords only' search checkbox as the default

There are four places where the 'Title and Keywords only ' checkbox  appears.
1 - Home page
2 - Category page
3 - Search results  page
4 - Order on behalf of page

To select the checkbox by  default, add the following JavaScript to the footer file.

<script type="text/javascript">

if (document.getElementById('searchservice')) {

document.searchservice.searchOnlyTitlesAndKeywords.checked  = true;

}

if  (document.getElementById('edit_requisition_form')) {

document.edit_requisition_form.searchOnlyTitlesAndKeywords.checked  = true;

}

</script>


Everyone's tags (1)
1 REPLY

Re: Set 'Title & Keywords only' search checkbox as the default

The second if statement in the previous comment was causing a  JavaScript error on the Order on behalf of page.  The modified code is  below.  Add the JavaScript to your footer file.

137
Views
0
Helpful
1
Replies
CreatePlease to create content