How to clear whole column?

Why are you not doing that for non sign in users? Make that screen visible to all. I’m confused, what I just used doesn’t matter if it’s signed in or not. Doesn’t even use Glide.

ohhh… i guess my english is still not good.
in the sample i post im trying to make it for non sign in.
try it whit-out sign in you will see

If you don’t mind can you allow me to edit your app

video you post… can be play like this without sing in?

yes

wow, you have a link to that app?

I messaged you the specs sir

Good afternoon @Drearystate. I was looking for a clear column script and came across your Chest Hunters post. However it appears there is no script in the GSheet attached. Is there a new version available for copy?

Thanks in advance.

I actually stopped working on that app but I can get you the script I used.

 function ClearContentScript(e) {
 var s = SpreadsheetApp.getActiveSheet();
if( s.getName() == "MAIN MENU" ) {        // sheet name
var r = s.getActiveCell(); 
if( r.getColumn() == 6 ) {                // column number
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('MAIN MENU'), true);
spreadsheet.getRange('B2:F17').clear();
         }
       }
     }

It’s a onChange event so when you make the trigger make sure you set it as a onChange event.

The script I posted for deleting rows in that other thread could be quite easily adapted for clearing one (or more) columns.

1 Like

Please let me know if there is a new feature in glide for this.
I’m not too keen on scripts.
Would be nice to click one button and clear a whole column.

There isn’t.
Well, technically there is now - with Enterprise/Pro Apps you could use the Glide API to do a Set Column Values on several rows, and have that triggered by a single action.

If the API is too daunting for you (or your app is not pro), then the closest you can get is to “simulate” it.

2 Likes

Jeff’s solution is best for now…REALLY need a set column > multiple relation > clear all. Been asking for this for almost two years now.

4 Likes

I managed to use the Multiple Row Reset Concept App for some ideas.
Definitely does the trick for now. Bit of a workaround but at least i don’t have to use scripting etc.

1 Like

I haven’t checked, but I assume we can’t clear user-specific columns using Glide API?

1 Like

Good call…probably not.

1 Like

What’s the current status on this issue?

I wouldn’t say this is an issue, it’s a thing that has never been supported.

1 Like

Wow… this post is over three years old, LOL… since then, we have had new tools… and it is not that hard anymore :wink:
The whole columns can be clear, edited, or replaced.

@ToOFa_Apps mind sharing with me how you did this? I just need a button to clear all of the data in column H on the google sheet that it is referencing.