Push to array without button


I am looking for a method to push data to array directly from input. Is it possible? If is, how to do it?
Before I used a “save” button to push data but more elegant is saving without.

You might want to try the methods from this thread.