You can use Special Values instead of trying to come up with a script.
As for the script, the function name doesn’t matter, but it will only work with triggers. In particular, the onChange trigger.
Steps 4 and 5 explain it more here.
You can use Special Values instead of trying to come up with a script.
As for the script, the function name doesn’t matter, but it will only work with triggers. In particular, the onChange trigger.
Steps 4 and 5 explain it more here.