I am looking to add a script to clear a range by clicking a tick box. I'm getting the error
TypeError: Cannot read property 'source' of undefined
I added a script found on this website and think I made the necessary adjustments but something is wrong.