I am trying to use a custom function. Whenever I try to use it as a formula from within sheets and run it on a cell it throws the error:
You do not have permission to call setDataValidation
But when I run it from the script editor it runs perfectly fine. How can I make it work without having to click Run
from the script editor?
Note: I prefer not to use triggers.