Case #80212: Need HTML widget search code updated for social groups


We have a strong need to restrict searches to social groups, like the code provided by David Montgomery here: HTML Widget Solution for Search in Community .


<div id="searchACommunity">
<form action="/search.jspa" name="searchform">
<input id="jive-search-terms" maxlength="100" size="30" name="q" type="text" value=""/>
<input id="jive-search-button-submit" onclick="this.disabled=true;this.value='Searching...';this.form.submit();return false;" type="submit" value="Go"/>
<input type="hidden" name="containerType" value="14"/>
<input type="hidden" name="container" value="2156"/><!-- id of the community to search -->


Greg has tried updating the container value but this did not work. Our suspicion is that we need to update the container type as well.


What is the container type for Social Groups?


What else do we need to do to modify this code to work for social groups?


More Like This