I have a checkbox to filter which categories that the simple search form is actually searching in. Is there a way to do this properly within EE? Here is the code below.
{exp:search:simple_form
channel="promo_video"
search_in="entries"
no_result_page=""
result_page=""}
<input type="text" name="keywords" id="keywords" placeholder="Search here" />
<input type="submit" id="submit-button" class="submit-search" value="Submit"/>
<div class="search-group-title">Filter:</div>
<ul class="search-group">
<li><input type="checkbox" name="filters" id="{promo_description}" value="152"/>Sermon Description</li>
<li><input type="checkbox" name="filters" id="{promo_video_title}" value="42"/>Series Title</li>
<li><input type="checkbox" name="filters" id="{sermon_notes_txt)" value="241"/>Sermon Notes</li>
<li><input type="checkbox" name="filters" id="{youtube_transcript}" value="239"/>Youtube Transcript</li>
<li><input type="checkbox" name="filters" id="{meta_tags}" value="240"/>Tags</li>
</ul>
{/exp:search:simple_form}
{exp:channel:entries channel="promo_video" orderby="date"}
<div class="tile">
<div class="video-title" style="font-weight: bold;">{promo_video_title}</div>
<div class="promo-description">{promo_description}</div>
<div class="meta-tags">{meta_tags}</div>
</div>
{/exp:channel:entries}
Essentially, if the series title is selected, then the search would only take place within the {promo_video_title} field group. Also, if there are multiple boxes checked, for example, Sermon notes and Series title, only the {promo_video_title} and the {sermon_notes_txt} field groups would be searched. Right now it currently displays all of the entries from the promo_video channel, but I was wondering if the results were able to be filtered.