Recently, I attempted to incorporate a search feature using Bootstrap-select into my dropdown menu for Google Apps Script.
Despite following this resource and including the necessary CDN and JS files from this location, I encountered difficulties implementing it into my Google Apps Script Webapp. The dropdown menu appears, but lacking the search functionality.
Below is the code I used - can someone please identify what I may have done incorrectly?
uform.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1d7f7272696e696f7c6d5d28332d332d307f78697c2f">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">e;
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body>
<div class="container">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">Home</button>
</li>
... [remaining HTML code trimmed for brevity]
functions.gs:
function getSalesCaseOwnerDropdown(){
const ss = SpreadsheetApp.getActiveSpreadheet();
const ws = ss.getSheetByName("CaseOwners");
return ws.getRanage(2, 1, ws.getLastRow()-1, 1).getValues();
}
What my Result Looks Like:
Screenshot from Webapp The addition of a search box would greatly enhance this setup.
Thank you in advance!