I am working with a spreadsheet to have a more web style and I need to show details of some fields only when the user requires it. I can show a hidden row with sheet.showRows(3)
but I can not hide it using:
var clic=0;
function mostrarDetalle(){
var sheet = spreadSheet.getSheetByName("Hoja 1");
if (clic==0){
sheet.showRows(3);
clic = 1;
}else{
sheet.hideRows(3);
clic = 0;
}
}
Only this works for me:
var sRows = sheet.showRows(3) || sheet.hideRows(3);
but it is hidden automatically and I need the user to control when it should be hidden, can you help me?