The options in the dropdown are Completed, In Progress, and Followup. I only want to hide the row when Completed is selected. Is there a way to achieve this?
Tried the following function
function onEdit(e) {
const columns = [3];
const { range } = e;
if (!columns.includes(range.columnStart) || !range.isComplete()) return;
range.getSheet().hideRows(range.rowStart);
}
2
Answers
try:
You were close
From
To
Notes:
isCompleted()
is not method of Class Range.range
property, the on edit event object might include avalue
property. This property is included when a single cell is edited, except if the cell value was cleared. The To version makes use of this property.