I think the problem is that you need to send the value / trigger the toolbox function only if th event is success.
I don’t use the toolbox plugin (in most case I will instead create my own plugin). So not sure how it work. But I’m pretty sure that one issue actually is that the function is triggered on every event add a if before the function to check the event type == “success”