Hello DM Community,
In my low-code app, I have a button that runs an automation script. I also have a text module in my designer that retrieves the script’s result after clicking the button and displays its contents (using its variable-formatted text content). This part works fine.
However, when I try to copy the script’s result to the clipboard as another step in the button click actions immediately after launching the script, nothing gets pushed to the clipboard. If I click the button a second time, the previously generated result is then copied to the clipboard.
What am I doing wrong here?
Many thanks!

Hi! The reason your current setup doesn't achieve the desired result is that Button 9 only exposes its outputs at the very end of its event chain. All outputs are collected first, and only once the event is complete does the button send its data to the consumers.
So, when the content is copied to the clipboard (which still happens within the ongoing event), the button hasn't yet finished. This means there's either no data available yet, or it's still holding the value from the previous click event.
To use the button's value before it's actually exposed, you can first store it in a variable, and then copy that variable's content to the clipboard. Starting from version 10.5.9, this can be done using the Action tab when linking the output to a variable:

Your event configuration should look something like this:
