Hi just wondering if someone could help me modify this code (Thanks Tanaike) so it would search in Column 'G' a specific word then create a datalist from row that match the word in the variable specWord
<div class="form-group col-md-5">
<label for="test">test</label>
<input type="text" id="test1" class="form-control" list="test" name="test"
onchange="test4()">
<datalist id="test" >
<?
var sheet = SpreadsheetApp.getActive().getSheetByName("info");
var specWord = "Apple"; /// Specific Word to look for
var lastRow = sheet.getLastRow();
var myRange = sheet.getRange("E2:G"+lastRow);
var data = myRange.getValues();
for (var i = 0; i < data.length; ++i) { ?>
<option value="<?!= data[i] ?>">
<? } ?>
</datalist>
so the datalist would be created from the 3 item matching "Apple" in column 'G'
Thanks
