Change default option in Search and Select Prompt

The default selection of the options in a search and select prompt is set to “Starts with any of these keywords”. I want the default to be “Contains any of these keywords”. To archieve this I found a solution on CogKnowHow.See this URL for the solution.

The script they provided is:

<script src=”http://code.jquery.com/jquery-1.4.2.js“></script>
<script type=”text/javascript”>
// Possible options:
// swsStartAny  = Starts with any of these keywords
// swsStartAll  = Starts with the first keyword and contains all of the remaining keywords
// swsMatchAny  = Contains any of these keywords
// swsMatchAll  = Contains all of these keywords
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j(“input[id*=’swsMatchAny’]”).attr(“checked”,”true”);
});
</script>

You have to put this script in a HTML-item in the header of the report.

Thanks to Jeroen for this solution!

Leave a Reply

Your email address will not be published. Required fields are marked *