Hi @blokh,
It may make more sense to do this from a rule, have you considered that?
Here is a thread that goes through how to set it up: