It is not possible by using only the button but it doesn't mean that it is impossible. It can be done in many different ways. I point out one possibility but it requires a bit understanding of javascript so it may be not the solutions you are looking for. Link to the thread: https://discourse.nodered.org/t/a-little-bit-of-a-flow-that-others-may-like/372/18