I've got an advanced search set up on a Google site to search folders within a Google Drive, but all it does is pull up the https://script.google.com/a/macros/LINKHIDDENFORPRIVACY/dev/exec?q= address, without searching for the terms input by the user.
<link href='https://fonts.googleapis.com/css?family=Nunito' rel='stylesheet'>
<style>
body {
font-family: 'Nunito';font-size: 18px;
}
</style>
<form id="searchForm" target="_blank" action='https://script.google.com/a/macros/LINKHIDDENFORPRIVACY/dev/exec?q=' + q>
<div class='advSearch'>
<p align="center">2nd Channel - Advanced Search</p>
<p align="center"><input type='text' id='search' style='font face="Nunito" size:15px,height:35px'>
<button onclick='runSearch()' style='padding:5px;font-size:10px'>🔍</button>
<script>
function runSearch() {
document.getElementById("search").addEventListener("submit", (e) => {
e.preventDefault();
let q = document.getElementById("search").value;
window.open('https://script.google.com/a/macros/LINKHIDDENFORPRIVACY/dev/exec?q=' + q);
}
</script>