I’m trying to follow the example from the Recording an Action section of references, copy-pasted their code into a command of the panel:
The action then recorder successfully however when I run it I’m getting an error message that the alertHandler isn’t found:
How is it supposed to work, what am I missing? Just in case permissions for host and plugin communications are set to true.
sttk3
2
In your code, the function alertHandler is in a narrow scope, so you need to get it out to the top level.
There is a similar question on this page with sample code. It may be helpful.
1 Like
Amazing, thank you! absolutely missed the additional notes by thinking that would be mentioned in the example…
1 Like